mistralai_dart library

Dart Client for the Mistral AI API (Mistral-7B, Mixtral 8x7B, embeddings, etc.).

Classes

ChatCompletionMessage
A message in a chat conversation.
ChatCompletionModel
ID of the model to use. You can use the List Available Models API to see all of your available models, or see our Model overview for model descriptions.
ChatCompletionModelEnumeration
ChatCompletionModelString
ChatCompletionRequest
Request class for the chat completion endpoint.
ChatCompletionResponse
Response class for the chat completion endpoint.
ChatCompletionResponseChoicesInner
A choice in a chat completion.
ChatCompletionStreamDelta
A chat completion delta generated by streamed model responses.
ChatCompletionStreamResponse
Represents a streamed chunk of a chat completion response returned by model, based on the provided input.
ChatCompletionStreamResponseChoicesInner
A choice in a chat completion stream.
ChatCompletionUsage
The usage statistics for this completion.
Embedding
A generated embedding.
EmbeddingModel
ID of the model to use. You can use the List Available Models API to see all of your available models, or see our Model overview for model descriptions.
EmbeddingModelEnumeration
EmbeddingModelString
EmbeddingRequest
Request class for the embedding endpoint.
EmbeddingResponse
Response class for the embedding endpoint.
EmbeddingUsage
The usage statistics for this embedding.
MistralAIClient
Client for Mistral AI API.
Model
A model.
ModelList
Response class for the list models endpoint.

Enums

ChatCompletionFinishReason
The reason the model stopped generating tokens.
ChatCompletionMessageRole
The role of the message.
ChatCompletionModels
Available chat completion models. Mind that the list may not be exhaustive nor up-to-date.
EmbeddingEncodingFormat
The format of the output data.
EmbeddingModels
Available embedding models. Mind that the list may not be exhaustive nor up-to-date.

Exceptions / Errors

MistralAIClientException
HTTP exception handler for MistralAIClient