Current section

Files

Jump to
oapi_open_ai lib schemas response format text.ex
Raw

lib/schemas/response/format/text.ex

defmodule OpenAi.Response.Format.Text do
@moduledoc """
Provides struct and type for a Response.Format.Text
"""
@type t :: %__MODULE__{type: String.t()}
defstruct [:type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[type: {:const, "text"}]
end
end