Anthropic provider implementation for LiteLLM
Anthropic provider implementation for LiteLLM
Default cost per token for Anthropic models (in USD)
Default cost per token for Anthropic models (in USD)
(extract-model-name model)Extract actual model name from model string
Extract actual model name from model string
(get-cost-per-token-impl provider-name model)Anthropic-specific get-cost-per-token implementation
Anthropic-specific get-cost-per-token implementation
(get-rate-limits-impl provider-name)Anthropic-specific get-rate-limits implementation
Anthropic-specific get-rate-limits implementation
(handle-error-response provider response)Handle Anthropic API error responses
Handle Anthropic API error responses
(health-check-impl provider-name thread-pool config)Anthropic-specific health-check implementation
Anthropic-specific health-check implementation
(list-models provider)List available Anthropic models
List available Anthropic models
(make-request-impl provider-name
                   transformed-request
                   thread-pool
                   telemetry
                   config)Anthropic-specific make-request implementation
Anthropic-specific make-request implementation
(make-streaming-request-impl provider-name
                             transformed-request
                             thread-pool
                             config)Anthropic-specific make-streaming-request implementation
Anthropic-specific make-streaming-request implementation
(supports-function-calling-impl provider-name)Anthropic-specific supports-function-calling? implementation
Anthropic-specific supports-function-calling? implementation
(supports-streaming-impl provider-name)Anthropic-specific supports-streaming? implementation
Anthropic-specific supports-streaming? implementation
(test-anthropic-connection provider thread-pool telemetry)Test Anthropic connection with a simple request
Test Anthropic connection with a simple request
(transform-choice response index)Transform Anthropic response to standard choice format
Transform Anthropic response to standard choice format
(transform-message message)Transform Anthropic message to standard format
Transform Anthropic message to standard format
(transform-messages messages)Transform messages to Anthropic format
Transform messages to Anthropic format
(transform-request-impl provider-name request config)Anthropic-specific transform-request implementation
Anthropic-specific transform-request implementation
(transform-response-impl provider-name response)Anthropic-specific transform-response implementation
Anthropic-specific transform-response implementation
(transform-streaming-chunk-impl provider-name chunk)Anthropic-specific transform-streaming-chunk implementation
Anthropic-specific transform-streaming-chunk implementation
(transform-tool-calls content)Transform Anthropic tool uses to standard format
Transform Anthropic tool uses to standard format
(transform-tool-choice tool-choice)Transform tool choice to Anthropic format
Transform tool choice to Anthropic format
(transform-tools tools)Transform tools to Anthropic format
Transform tools to Anthropic format
(transform-usage usage)Transform Anthropic usage to standard format
Transform Anthropic usage to standard format
(validate-api-key api-key)Validate Anthropic API key
Validate Anthropic API key
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |