View Source ExOpenAI.Components.CreateChatCompletionResponse (ex_openai.ex v1.7.0)
Schema representing a CreateChatCompletionResponse within the OpenAI API
Summary
Types
@type t() :: %ExOpenAI.Components.CreateChatCompletionResponse{ choices: [ %{ finish_reason: :function_call | :content_filter | :tool_calls | :length | :stop, index: integer(), logprobs: %{content: [ExOpenAI.Components.ChatCompletionTokenLogprob.t()]}, message: ExOpenAI.Components.ChatCompletionResponseMessage.t() } ], created: integer(), id: String.t(), model: String.t(), object: :"chat.completion", service_tier: (:default | :scale) | nil, system_fingerprint: String.t() | nil, usage: ExOpenAI.Components.CompletionUsage.t() | nil }