View Source HyperLLM.Provider.Mistral (hyper_llm v0.6.0)

Provider implementation for Mistral.ai.

https://docs.mistral.ai/api/

Configuration

api_key - The API key for the Mistral API.

config :hyper_llm, 
  mistral: [
    api_key: "...",
  ]

Summary

Functions

Check if a model is supported by the provider.

Functions

completion(params, config \\ [])

@spec completion(
  HyperLLM.Provider.completion_params(),
  HyperLLM.Provider.completion_config()
) ::
  {:ok, binary()} | {:error, binary()}

See HyperLLM.Chat.completion/3 for more information.

model_supported?(model)

Check if a model is supported by the provider.

Supported Models:

  • codestral-latest
  • mistral-large-latest
  • pixtral-large-latest
  • mistral-3b-latest
  • mistral-8b-latest
  • mistral-embed
  • mistral-moderation-latest
  • mistral-small-latest
  • pixtral-12b-2409
  • open-mistral-nemo
  • open-codestral-mamba