Current section

Files

Jump to
oapi_open_ai lib schemas usage image result.ex
Raw

lib/schemas/usage/image/result.ex

defmodule OpenAi.Usage.Image.Result do
@moduledoc """
Provides struct and type for a Usage.Image.Result
"""
@type t :: %__MODULE__{
api_key_id: String.t() | nil,
images: integer,
model: String.t() | nil,
num_model_requests: integer,
object: String.t(),
project_id: String.t() | nil,
size: String.t() | nil,
source: String.t() | nil,
user_id: String.t() | nil
}
defstruct [
:api_key_id,
:images,
:model,
:num_model_requests,
:object,
:project_id,
:size,
:source,
:user_id
]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
api_key_id: {:string, :generic},
images: :integer,
model: {:string, :generic},
num_model_requests: :integer,
object: {:const, "organization.usage.images.result"},
project_id: {:string, :generic},
size: {:string, :generic},
source: {:string, :generic},
user_id: {:string, :generic}
]
end
end