ExOpenAI.Components.CreateChatCompletionStreamResponse (ex_openai.ex v1.2.1) View Source

Schema representing a CreateChatCompletionStreamResponse within the OpenAI API

Link to this section Summary

Link to this section Types

Specs

t() :: %ExOpenAI.Components.CreateChatCompletionStreamResponse{
  choices: [
    %{
      delta: ExOpenAI.Components.ChatCompletionStreamResponseDelta.t(),
      finish_reason: :function_call | :length | :stop,
      index: integer()
    }
  ],
  created: integer(),
  id: String.t(),
  model: String.t(),
  object: String.t()
}