MistralClient.Models.EmbeddingResponse (mistralex_ai v0.1.0)

View Source

Represents an embedding response.

Summary

Functions

Create an embedding response from a map.

Types

t()

@type t() :: %MistralClient.Models.EmbeddingResponse{
  data: [Embedding.t()],
  id: String.t(),
  model: String.t(),
  object: String.t(),
  usage: MistralClient.Models.Usage.t() | nil
}

Functions

from_map(data)

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

Create an embedding response from a map.