Module: OpenAI::Models::Beta::SessionTurnError::Code
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/openai/models/beta/session_turn_error.rb,
sig/openai/models/beta/session_turn_error.rbs
Overview
A stable, machine-readable failure category.
Constant Summary collapse
- CONTEXT_LENGTH_EXCEEDED =
The request exceeds the model's context window.
:context_length_exceeded- SESSION_BUDGET_EXCEEDED =
The session has reached its usage budget.
:session_budget_exceeded- USAGE_LIMIT_EXCEEDED =
The organization has reached a usage, plan, or billing limit.
:usage_limit_exceeded- RATE_LIMIT_EXCEEDED =
The request exceeds the available rate limit.
:rate_limit_exceeded- SERVER_OVERLOADED =
The model service is temporarily overloaded.
:server_overloaded- CYBER_POLICY =
The request was rejected by a safety policy.
:cyber_policy- CONNECTION_FAILED =
The request could not connect to the model service.
:connection_failed- SERVER_ERROR =
The model service encountered an unexpected error.
:server_error- AUTHENTICATION_ERROR =
The API credentials are invalid or lack the required access.
:authentication_error- INVALID_REQUEST =
The request contains invalid input or configuration.
:invalid_request- RESOURCE_NOT_FOUND =
The requested model or resource is unavailable.
:resource_not_found- SANDBOX_ERROR =
The request could not complete in its execution environment.
:sandbox_error- EXECUTOR_VERSION_INCOMPATIBLE =
The executor must be upgraded before it can run this turn.
:executor_version_incompatible- ACTIVE_TURN_NOT_STEERABLE =
The session cannot accept additional input while a request is running.
:active_turn_not_steerable- REQUEST_TIMEOUT =
The request timed out before the model service responded.
:request_timeout- INTERNAL_ERROR =
An unexpected internal error prevented the session request from completing.
:internal_error
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/session_turn_error.rb', line 82
|
Instance Method Details
#self?.values ⇒ ::Array[OpenAI::Models::Beta::SessionTurnError::code]
91 |
# File 'sig/openai/models/beta/session_turn_error.rbs', line 91
def self?.values: -> ::Array[OpenAI::Models::Beta::SessionTurnError::code]
|