View Source Langchain.ChatModels.ChatMistralAI (LangChain v0.2.0)

Summary

Types

@type t() :: %Langchain.ChatModels.ChatMistralAI{
  api_key: term(),
  endpoint: term(),
  max_tokens: term(),
  model: term(),
  random_seed: term(),
  receive_timeout: term(),
  safe_prompt: term(),
  stream: term(),
  temperature: term(),
  top_p: term()
}

Functions

Link to this function

do_api_request(mistral, messages, functions, callback_fn, retry_count \\ 3)

View Source
Link to this function

for_api(mistral, messages, functions)

View Source
@spec for_api(t(), message :: [map()], functions :: [map()]) :: %{
  required(atom()) => any()
}
@spec new(attrs :: map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
@spec new!(attrs :: map()) :: t() | no_return()