Packages

Client SDK for OpenAI generated from their [OpenAPI specification](https://github.com/openai/openai-openapi).

Current section

Files

Jump to
oai_oapi lib openai chat_completion_response_message.ex
Raw

lib/openai/chat_completion_response_message.ex

defmodule OpenAI.ChatCompletionResponseMessage do
@moduledoc """
Provides struct and type for ChatCompletionResponseMessage
"""
@type t :: %__MODULE__{content: String.t(), role: String.t()}
defstruct [:content, :role]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[content: :string, role: :string]
end
end