struct

AI::OpenAI::OpenAILanguageModelCapabilities

Inherits Struct < Value < Object

Capabilities of an OpenAI language model.

Different models have different capabilities and parameter support. This struct captures those differences.

Constructors

new(reasoning_model : Bool, system_message_mode : SystemMessageMode, supports_flex_processing : Bool, supports_priority_processing : Bool, supports_non_reasoning_parameters : Bool)
Source

Instance methods

reasoning_model?

Whether this is a reasoning model (o1, o3, gpt-5, etc.).

Source
supports_flex_processing?

Whether the model supports flex processing (50% cheaper, higher latency). Available for o3, o4-mini, and gpt-5 models.

Source
supports_non_reasoning_parameters?

Whether the model allows temperature, topP, logProbs when reasoningEffort is none. Only gpt-5.1 and gpt-5.2 models support this.

Source
supports_priority_processing?

Whether the model supports priority processing (Enterprise feature). Available for gpt-4, gpt-5, gpt-5-mini, o3, o4-mini.

Source
system_message_mode

How system messages should be handled for this model.

Source