powered by
List Anthropic (Anthropic) Models
anthropic_list_models( base_url = ANTHROPIC_URL_DEFAULT, api_key = NULL, api_key_env = ANTHROPIC_API_KEY_ENV_DEFAULT, keychain_service = NULL, anthropic_version = ANTHROPIC_API_VERSION_DEFAULT )
Character vector: Model ids.
Character: Base URL of the Anthropic API.
Optional character: API key.
Character: Environment variable containing the API key.
Optional character: macOS Keychain service containing the API key.
Character: anthropic-version header value.
anthropic-version
EDG
# Requires running Anthropic-compatible server with /models endpoint if (FALSE) { anthropic_list_models( base_url = "http://localhost:1234/v1", api_key = "test-key" ) }
Run the code above in your browser using DataLab