Current section
Files
Jump to
Current section
Files
lib/schemas/response/format/json.ex
defmodule OpenAi.Response.Format.Json do
@moduledoc """
Provides struct and type for a Response.Format.Json
"""
@type t :: %__MODULE__{type: String.t()}
defstruct [:type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[type: {:const, "json_object"}]
end
end