MistralModelLister

org.llm4s.config.MistralModelLister

Model lister for the Mistral provider: GET <api base>/models, where the API base is the one chat posts /chat/completions under - org.llm4s.llmconnect.config.MistralConfig.apiBaseUrl of the section's baseUrl (the API root, https://api.mistral.ai by default), so https://api.mistral.ai and https://api.mistral.ai/v1 both list /v1/models.

This was ProviderModelListers.Mistral until the provider moved to llm4s-openai-compatible (#1132).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Fetches the list of available models for the given provider configuration.

Fetches the list of available models for the given provider configuration.

Value parameters

config

the validated named provider configuration containing credentials and base URL

httpClient

the HTTP client to use for API requests

Attributes

Returns

Right with the list of discovered models, or Left with an error