glean/providers/mistral

Values

pub fn default_config(
  api_key api_key: String,
  model model: String,
) -> config.ProviderConfig

The default configuration for this provider. Change it with the glean/providers/config setters, then pass it to from_config.

pub fn from_config(
  cfg: config.ProviderConfig,
) -> provider.Provider

Create a Mistral provider from a full config.

pub fn new(
  api_key api_key: String,
  model model: String,
) -> provider.Provider

Create a Mistral provider.

Example

let provider = mistral.new(api_key: "...", model: "mistral-large-latest")
✨ Search Document