Learn R Programming

rtemis.llm (version 0.8.1)

anthropic_list_models: List Anthropic (Anthropic) Models

Description

List Anthropic (Anthropic) Models

Usage

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
)

Value

Character vector: Model ids.

Arguments

base_url

Character: Base URL of the Anthropic API.

api_key

Optional character: API key.

api_key_env

Character: Environment variable containing the API key.

keychain_service

Optional character: macOS Keychain service containing the API key.

anthropic_version

Character: anthropic-version header value.

Author

EDG

Examples

Run this code
# 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