Default Models
gpt_5_reasoning_settings_required
Returns True if the model name is a GPT-5 model and reasoning settings are required.
Source code in src/agents/models/default_models.py
is_gpt_5_default
Returns True if the default model is a GPT-5 model. This is used to determine if the default model settings are compatible with GPT-5 models. If the default model is not a GPT-5 model, the model settings are compatible with other models.
Source code in src/agents/models/default_models.py
get_default_model
get_default_model_settings
get_default_model_settings(
model: Optional[str] = None,
) -> ModelSettings
Returns the default model settings. If the default model is a GPT-5 model, returns the GPT-5 default model settings. Otherwise, returns the legacy default model settings.