ExOpenAI.Components.CreateEmbeddingResponse (ex_openai.ex v1.0.4) View Source

Schema representing a CreateEmbeddingResponse within the OpenAI API

Link to this section Summary

Link to this section Types

Specs

t() :: %ExOpenAI.Components.CreateEmbeddingResponse{
  data: [%{embedding: [float()], index: integer(), object: String.t()}],
  model: String.t(),
  object: String.t(),
  usage: %{prompt_tokens: integer(), total_tokens: integer()}
}