MistralClient.Models.ChatCompletion (mistralex_ai v0.1.0)

View Source

Represents a chat completion response.

Summary

Functions

Create a chat completion from a map.

Types

t()

@type t() :: %MistralClient.Models.ChatCompletion{
  choices: [ChatCompletionChoice.t()],
  created: integer(),
  id: String.t(),
  model: String.t(),
  object: String.t(),
  usage: Usage.t() | nil
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create a chat completion from a map.