Mistral AI provider implementation for LiteLLM
Mistral AI provider implementation for LiteLLM
(add-reasoning-system-prompt messages reasoning-effort)Add reasoning system prompt for magistral models based on reasoning_effort
Add reasoning system prompt for magistral models based on reasoning_effort
(create-embedding-request input model)Transform embedding request to Mistral format
Transform embedding request to Mistral format
Default cost per token for Mistral models (in USD) Prices from https://mistral.ai/technology/#pricing
Default cost per token for Mistral models (in USD) Prices from https://mistral.ai/technology/#pricing
(get-cost-per-token-impl provider-name model)Mistral-specific get-cost-per-token implementation
Mistral-specific get-cost-per-token implementation
(get-rate-limits-impl provider-name)Mistral-specific get-rate-limits implementation
Mistral-specific get-rate-limits implementation
(handle-error-response provider response)Handle Mistral API error responses
Handle Mistral API error responses
(handle-streaming-response response callback)Handle streaming response from Mistral
Handle streaming response from Mistral
(health-check-impl provider-name thread-pool config)Mistral-specific health-check implementation
Mistral-specific health-check implementation
(list-models provider)List available Mistral models
List available Mistral models
Models that support reasoning with reasoning_effort parameter
Models that support reasoning with reasoning_effort parameter
(make-embedding-request provider input model thread-pool)Make embedding request to Mistral API
Make embedding request to Mistral API
(make-request-impl provider-name
                   transformed-request
                   thread-pool
                   telemetry
                   config)Mistral-specific make-request implementation
Mistral-specific make-request implementation
(parse-sse-line line)Parse a Server-Sent Events line
Parse a Server-Sent Events line
(supports-function-calling-impl provider-name)Mistral-specific supports-function-calling? implementation
Mistral-specific supports-function-calling? implementation
(supports-reasoning? model)Check if a model supports reasoning
Check if a model supports reasoning
(supports-streaming-impl provider-name)Mistral-specific supports-streaming? implementation
Mistral-specific supports-streaming? implementation
(test-mistral-connection provider thread-pool telemetry)Test Mistral connection with a simple request
Test Mistral connection with a simple request
(transform-choice choice)Transform Mistral choice to standard format
Transform Mistral choice to standard format
(transform-message message)Transform Mistral message to standard format
Transform Mistral message to standard format
(transform-messages messages)Transform messages to Mistral format (OpenAI-compatible)
Transform messages to Mistral format (OpenAI-compatible)
(transform-request-impl provider-name request config)Mistral-specific transform-request implementation
Mistral-specific transform-request implementation
(transform-response-impl provider-name response)Mistral-specific transform-response implementation
Mistral-specific transform-response implementation
(transform-streaming-chunk chunk)Transform Mistral streaming chunk to standard format
Transform Mistral streaming chunk to standard format
(transform-tool-calls tool-calls)Transform Mistral tool calls to standard format
Transform Mistral tool calls to standard format
(transform-tool-choice tool-choice)Transform tool choice to Mistral format
Transform tool choice to Mistral format
(transform-tools tools)Transform tools to Mistral format (OpenAI-compatible)
Transform tools to Mistral format (OpenAI-compatible)
(transform-usage usage)Transform Mistral usage to standard format
Transform Mistral usage to standard format
(validate-api-key api-key)Validate Mistral API key
Validate Mistral 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 |