Skip to contents

Reads the bridge's health with apple_health and stops with a message that says what to do when the bridge is not running, the server is not rtemis-afm, or the model is unavailable (device not eligible, Apple Intelligence turned off, model still downloading).

Usage

apple_check_available(base_url = APPLE_URL_DEFAULT)

Arguments

base_url

Character: Base URL of the bridge's OpenAI-compatible wire.

Value

Named list, invisibly: The health response, if the model is available; otherwise throws an error.

Author

EDG

Examples

# Requires a running rtemis-afm bridge
if (FALSE) { # \dontrun{
  apple_check_available()
} # }