GenAI.Provider.Mistral (Noizu Labs, GenAI Wrapper v0.0.3)
This module implements the GenAI provider for Mistral AI.
Link to this section Summary
Functions
Sends a chat completion request to the Mistral API.
This function constructs the request body based on the provided messages, tools, and settings, sends the request to the Mistral API, and returns a GenAI.ChatCompletion
struct with the response.
Retrieves a list of available Mistral models.
Link to this section Functions
chat(messages, tools, settings)
Sends a chat completion request to the Mistral API.
This function constructs the request body based on the provided messages, tools, and settings, sends the request to the Mistral API, and returns a GenAI.ChatCompletion
struct with the response.
chat(model, messages, tools, hyper_parameters, provider_settings \\ [])
models(settings \\ [])
Retrieves a list of available Mistral models.
This function calls the Mistral API to retrieve a list of models and returns them as a list of GenAI.Model
structs.