Liking cljdoc? Tell your friends :D

litellm.providers.anthropic

Anthropic provider implementation for LiteLLM

Anthropic provider implementation for LiteLLM
raw docstring

default-cost-mapclj

Default cost per token for Anthropic models (in USD)

Default cost per token for Anthropic models (in USD)
sourceraw docstring

default-model-mappingclj

Default model name mappings

Default model name mappings
sourceraw docstring

extract-model-nameclj

(extract-model-name model)

Extract actual model name from model string

Extract actual model name from model string
sourceraw docstring

get-cost-per-token-implclj

(get-cost-per-token-impl provider-name model)

Anthropic-specific get-cost-per-token implementation

Anthropic-specific get-cost-per-token implementation
sourceraw docstring

get-rate-limits-implclj

(get-rate-limits-impl provider-name)

Anthropic-specific get-rate-limits implementation

Anthropic-specific get-rate-limits implementation
sourceraw docstring

handle-error-responseclj

(handle-error-response provider response)

Handle Anthropic API error responses

Handle Anthropic API error responses
sourceraw docstring

health-check-implclj

(health-check-impl provider-name thread-pool config)

Anthropic-specific health-check implementation

Anthropic-specific health-check implementation
sourceraw docstring

list-modelsclj

(list-models provider)

List available Anthropic models

List available Anthropic models
sourceraw docstring

make-request-implclj

(make-request-impl provider-name
                   transformed-request
                   thread-pool
                   telemetry
                   config)

Anthropic-specific make-request implementation

Anthropic-specific make-request implementation
sourceraw docstring

make-streaming-request-implclj

(make-streaming-request-impl provider-name
                             transformed-request
                             thread-pool
                             config)

Anthropic-specific make-streaming-request implementation

Anthropic-specific make-streaming-request implementation
sourceraw docstring

supports-function-calling-implclj

(supports-function-calling-impl provider-name)

Anthropic-specific supports-function-calling? implementation

Anthropic-specific supports-function-calling? implementation
sourceraw docstring

supports-streaming-implclj

(supports-streaming-impl provider-name)

Anthropic-specific supports-streaming? implementation

Anthropic-specific supports-streaming? implementation
sourceraw docstring

test-anthropic-connectionclj

(test-anthropic-connection provider thread-pool telemetry)

Test Anthropic connection with a simple request

Test Anthropic connection with a simple request
sourceraw docstring

transform-choiceclj

(transform-choice response index)

Transform Anthropic response to standard choice format

Transform Anthropic response to standard choice format
sourceraw docstring

transform-messageclj

(transform-message message)

Transform Anthropic message to standard format

Transform Anthropic message to standard format
sourceraw docstring

transform-messagesclj

(transform-messages messages)

Transform messages to Anthropic format

Transform messages to Anthropic format
sourceraw docstring

transform-request-implclj

(transform-request-impl provider-name request config)

Anthropic-specific transform-request implementation

Anthropic-specific transform-request implementation
sourceraw docstring

transform-response-implclj

(transform-response-impl provider-name response)

Anthropic-specific transform-response implementation

Anthropic-specific transform-response implementation
sourceraw docstring

transform-streaming-chunk-implclj

(transform-streaming-chunk-impl provider-name chunk)

Anthropic-specific transform-streaming-chunk implementation

Anthropic-specific transform-streaming-chunk implementation
sourceraw docstring

transform-tool-callsclj

(transform-tool-calls content)

Transform Anthropic tool uses to standard format

Transform Anthropic tool uses to standard format
sourceraw docstring

transform-tool-choiceclj

(transform-tool-choice tool-choice)

Transform tool choice to Anthropic format

Transform tool choice to Anthropic format
sourceraw docstring

transform-toolsclj

(transform-tools tools)

Transform tools to Anthropic format

Transform tools to Anthropic format
sourceraw docstring

transform-usageclj

(transform-usage usage)

Transform Anthropic usage to standard format

Transform Anthropic usage to standard format
sourceraw docstring

validate-api-keyclj

(validate-api-key api-key)

Validate Anthropic API key

Validate Anthropic API key
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close