Module: Mistral

Defined in:
lib/mistral.rb,
lib/mistral/client.rb,
lib/mistral/version.rb,
lib/mistral/constants.rb,
lib/mistral/exceptions.rb,
lib/mistral/client_base.rb,
lib/mistral/models/common.rb,
lib/mistral/models/models.rb,
lib/mistral/models/embeddings.rb,
lib/mistral/models/chat_completion.rb

Defined Under Namespace

Modules: Types Classes: APIError, APIStatusError, ChatCompletionResponse, ChatCompletionResponseChoice, ChatCompletionResponseStreamChoice, ChatCompletionStreamResponse, ChatMessage, Client, ClientBase, ConnectionError, DeltaMessage, EmbeddingObject, EmbeddingResponse, Error, Function, FunctionCall, ModelCard, ModelList, ModelPermission, ResponseFormat, ToolCall, UsageInfo

Constant Summary collapse

VERSION =
'0.3.0'
RETRY_STATUS_CODES =
[429, 500, 502, 503, 504].freeze
ENDPOINT =
'https://api.mistral.ai'
ToolType =
Types::Strict::String.default('function').enum('function')
ResponseFormats =
Types::Strict::String.default('text').enum('text', 'json_object')
ToolChoice =
Types::Strict::String.enum('auto', 'any', 'none')
FinishReason =
Types::Strict::String.enum('stop', 'length', 'error', 'tool_calls')