ExOpenAI.Components.CreateChatCompletionResponse (ex_openai.ex v1.2.1) View Source
Schema representing a CreateChatCompletionResponse within the OpenAI API
Link to this section Summary
Link to this section Types
Specs
t() :: %ExOpenAI.Components.CreateChatCompletionResponse{ choices: [ %{ finish_reason: :function_call | :length | :stop, index: integer(), message: ExOpenAI.Components.ChatCompletionResponseMessage.t() } ], created: integer(), id: String.t(), model: String.t(), object: String.t(), usage: %{ completion_tokens: integer(), prompt_tokens: integer(), total_tokens: integer() } | nil }