Current section

Files

Jump to
oapi_open_ai lib schemas run incomplete_details.ex
Raw

lib/schemas/run/incomplete_details.ex

defmodule OpenAi.Run.IncompleteDetails do
@moduledoc """
Provides struct and type for a Run.IncompleteDetails
"""
@type t :: %__MODULE__{reason: String.t() | nil}
defstruct [:reason]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[reason: {:enum, ["max_completion_tokens", "max_prompt_tokens"]}]
end
end