Liking cljdoc? Tell your friends :D

litellm.providers.mistral

Mistral AI provider implementation for LiteLLM

Mistral AI provider implementation for LiteLLM
raw docstring

add-reasoning-system-promptclj

(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
sourceraw docstring

create-embedding-requestclj

(create-embedding-request input model)

Transform embedding request to Mistral format

Transform embedding request to Mistral format
sourceraw docstring

default-cost-mapclj

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
sourceraw docstring

get-cost-per-token-implclj

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

Mistral-specific get-cost-per-token implementation

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

get-rate-limits-implclj

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

Mistral-specific get-rate-limits implementation

Mistral-specific get-rate-limits implementation
sourceraw docstring

handle-error-responseclj

(handle-error-response provider response)

Handle Mistral API error responses

Handle Mistral API error responses
sourceraw docstring

handle-streaming-responseclj

(handle-streaming-response response callback)

Handle streaming response from Mistral

Handle streaming response from Mistral
sourceraw docstring

health-check-implclj

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

Mistral-specific health-check implementation

Mistral-specific health-check implementation
sourceraw docstring

list-modelsclj

(list-models provider)

List available Mistral models

List available Mistral models
sourceraw docstring

magistral-modelsclj

Models that support reasoning with reasoning_effort parameter

Models that support reasoning with reasoning_effort parameter
sourceraw docstring

make-embedding-requestclj

(make-embedding-request provider input model thread-pool)

Make embedding request to Mistral API

Make embedding request to Mistral API
sourceraw docstring

make-request-implclj

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

Mistral-specific make-request implementation

Mistral-specific make-request implementation
sourceraw docstring

parse-sse-lineclj

(parse-sse-line line)

Parse a Server-Sent Events line

Parse a Server-Sent Events line
sourceraw docstring

supports-function-calling-implclj

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

Mistral-specific supports-function-calling? implementation

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

supports-reasoning?clj

(supports-reasoning? model)

Check if a model supports reasoning

Check if a model supports reasoning
sourceraw docstring

supports-streaming-implclj

(supports-streaming-impl provider-name)

Mistral-specific supports-streaming? implementation

Mistral-specific supports-streaming? implementation
sourceraw docstring

test-mistral-connectionclj

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

Test Mistral connection with a simple request

Test Mistral connection with a simple request
sourceraw docstring

transform-choiceclj

(transform-choice choice)

Transform Mistral choice to standard format

Transform Mistral choice to standard format
sourceraw docstring

transform-messageclj

(transform-message message)

Transform Mistral message to standard format

Transform Mistral message to standard format
sourceraw docstring

transform-messagesclj

(transform-messages messages)

Transform messages to Mistral format (OpenAI-compatible)

Transform messages to Mistral format (OpenAI-compatible)
sourceraw docstring

transform-request-implclj

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

Mistral-specific transform-request implementation

Mistral-specific transform-request implementation
sourceraw docstring

transform-response-implclj

(transform-response-impl provider-name response)

Mistral-specific transform-response implementation

Mistral-specific transform-response implementation
sourceraw docstring

transform-streaming-chunkclj

(transform-streaming-chunk chunk)

Transform Mistral streaming chunk to standard format

Transform Mistral streaming chunk to standard format
sourceraw docstring

transform-tool-callsclj

(transform-tool-calls tool-calls)

Transform Mistral tool calls to standard format

Transform Mistral tool calls to standard format
sourceraw docstring

transform-tool-choiceclj

(transform-tool-choice tool-choice)

Transform tool choice to Mistral format

Transform tool choice to Mistral format
sourceraw docstring

transform-toolsclj

(transform-tools tools)

Transform tools to Mistral format (OpenAI-compatible)

Transform tools to Mistral format (OpenAI-compatible)
sourceraw docstring

transform-usageclj

(transform-usage usage)

Transform Mistral usage to standard format

Transform Mistral usage to standard format
sourceraw docstring

validate-api-keyclj

(validate-api-key api-key)

Validate Mistral API key

Validate Mistral 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