overlay/llm/provider/mistral

Types

pub type Config {
  Config(api_key: String)
}

Constructors

  • Config(api_key: String)

Values

pub fn completion_chunk_parse(
  remaining: BitArray,
  chunk: BitArray,
) -> #(List(chat.Completion(tool.Call)), BitArray)
pub fn stream_completion_request(
  config: Config,
  model: String,
  system_prompt: String,
  messages: List(chat.Message(tool.Call)),
  tools: List(tool.Tool),
) -> request.Request(BitArray)
pub fn tool_call_decoder() -> decode.Decoder(tool.Call)
pub fn tool_encode(tool: tool.Tool) -> json.Json
Search Document