GenAI.Provider.Mistral (Noizu Labs, GenAI Wrapper v0.1.0)

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

Link to this function

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.

Link to this function

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.