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.

See Also:

  • OpenAI::Models::Beta::SessionTurnError#code

Constant Summary collapse

CONTEXT_LENGTH_EXCEEDED =

The request exceeds the model's context window.

Returns:

  • (:context_length_exceeded)
:context_length_exceeded
MAX_OUTPUT_TOKENS =

The model reached its output token limit before finishing the response.

Returns:

  • (:max_output_tokens)
:max_output_tokens
SESSION_BUDGET_EXCEEDED =

The session has reached its usage budget.

Returns:

  • (:session_budget_exceeded)
:session_budget_exceeded
USAGE_LIMIT_EXCEEDED =

The organization has reached a usage, plan, or billing limit.

Returns:

  • (:usage_limit_exceeded)
:usage_limit_exceeded
PROJECT_SPEND_LIMIT_EXCEEDED =

The project has reached its enforced spend limit.

Returns:

  • (:project_spend_limit_exceeded)
:project_spend_limit_exceeded
ORGANIZATION_SPEND_LIMIT_EXCEEDED =

The organization has reached its enforced spend limit.

Returns:

  • (:organization_spend_limit_exceeded)
:organization_spend_limit_exceeded
ORGANIZATION_USAGE_LIMIT_EXCEEDED =

The organization has reached its OpenAI-assigned usage limit.

Returns:

  • (:organization_usage_limit_exceeded)
:organization_usage_limit_exceeded
BILLING_NOT_ACTIVE =

Billing is not active for the account.

Returns:

  • (:billing_not_active)
:billing_not_active
CREDIT_BALANCE_EXHAUSTED =

The organization has no API credits remaining.

Returns:

  • (:credit_balance_exhausted)
:credit_balance_exhausted
RATE_LIMIT_EXCEEDED =

The request exceeds the available rate limit.

Returns:

  • (:rate_limit_exceeded)
:rate_limit_exceeded
FLEX_UNAVAILABLE =

Flex processing is temporarily unavailable.

Returns:

  • (:flex_unavailable)
:flex_unavailable
SERVER_OVERLOADED =

The model service is temporarily overloaded.

Returns:

  • (:server_overloaded)
:server_overloaded
CYBER_POLICY =

The request was rejected by a safety policy.

Returns:

  • (:cyber_policy)
:cyber_policy
MISALIGNMENT_POLICY_VIOLATION =

The request was blocked by the safety systems.

Returns:

  • (:misalignment_policy_violation)
:misalignment_policy_violation
CONNECTION_FAILED =

The request could not connect to the model service.

Returns:

  • (:connection_failed)
:connection_failed
SERVER_ERROR =

The model service encountered an unexpected error.

Returns:

  • (:server_error)
:server_error
AUTHENTICATION_ERROR =

The API credentials are invalid or lack the required access.

Returns:

  • (:authentication_error)
:authentication_error
INVALID_REQUEST =

The request contains invalid input or configuration.

Returns:

  • (:invalid_request)
:invalid_request
RESOURCE_NOT_FOUND =

The requested model or resource is unavailable.

Returns:

  • (:resource_not_found)
:resource_not_found
SANDBOX_ERROR =

The request could not complete in its execution environment.

Returns:

  • (:sandbox_error)
:sandbox_error
EXECUTOR_VERSION_INCOMPATIBLE =

The executor must be upgraded before it can run this turn.

Returns:

  • (:executor_version_incompatible)
:executor_version_incompatible
ACTIVE_TURN_NOT_STEERABLE =

The session cannot accept additional input while a request is running.

Returns:

  • (:active_turn_not_steerable)
:active_turn_not_steerable
REQUEST_TIMEOUT =

The request timed out before the model service responded.

Returns:

  • (:request_timeout)
:request_timeout
INTERNAL_ERROR =

An unexpected internal error prevented the session request from completing.

Returns:

  • (:internal_error)
:internal_error

Class Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type

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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/session_turn_error.rb', line 106