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

Schema representing a CreateEditResponse within the OpenAI API

Link to this section Summary

Link to this section Types

Specs

t() :: %ExOpenAI.Components.CreateEditResponse{
  choices: [
    %{
      finish_reason: String.t(),
      index: integer(),
      logprobs: %{
        text_offset: [integer()],
        token_logprobs: [float()],
        tokens: [String.t()],
        top_logprobs: [map()]
      },
      text: String.t()
    }
  ],
  created: integer(),
  object: String.t(),
  usage: %{
    completion_tokens: integer(),
    prompt_tokens: integer(),
    total_tokens: integer()
  }
}