View Source ExOpenAi.Embedding (ex_open_ai v2.0.1)

Represents an embedding request to the OpenAI API.

Link to this section Summary

Link to this section Types

@type t() :: %ExOpenAi.Embedding{
  data: list(),
  model: String.t(),
  object: String.t(),
  usage: map()
}

Link to this section Functions

Link to this function

create(data, options \\ [])

View Source
@spec do_new(
  %ExOpenAi.Embedding{
    data: term(),
    model: term(),
    object: term(),
    usage: term()
  },
  attributes :: list()
) :: %ExOpenAi.Embedding{
  data: term(),
  model: term(),
  object: term(),
  usage: term()
}
Link to this function

keep_it_simple(response, arg2)

View Source
@spec new() :: %ExOpenAi.Embedding{
  data: term(),
  model: term(),
  object: term(),
  usage: term()
}
@spec new(attributes :: list()) :: %ExOpenAi.Embedding{
  data: term(),
  model: term(),
  object: term(),
  usage: term()
}