Restored the default model to gpt-4.1 for OpenAI and Azure LLM services

The default model for OpenAILLMService and AzureLLMService was still set
to gpt-4o. Restored it to gpt-4.1. Also, removed hardcoded gpt-4o/gpt-4o-mini
model references from examples so they pick up the new default.
This commit is contained in:
Mark Backman
2026-03-11 15:51:09 -04:00
parent 65561a1d83
commit 4a45145cba
8 changed files with 6 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ class AzureLLMService(OpenAILLMService):
Args:
api_key: The API key for accessing Azure OpenAI.
endpoint: The Azure endpoint URL.
model: The model identifier to use. Defaults to "gpt-4o".
model: The model identifier to use. Defaults to "gpt-4.1".
.. deprecated:: 0.0.105
Use ``settings=AzureLLMService.Settings(model=...)`` instead.
@@ -58,7 +58,7 @@ class AzureLLMService(OpenAILLMService):
**kwargs: Additional keyword arguments passed to OpenAILLMService.
"""
# 1. Initialize default_settings with hardcoded defaults
default_settings = self.Settings(model="gpt-4o")
default_settings = self.Settings(model="gpt-4.1")
# 2. Apply direct init arg overrides (deprecated)
if model is not None:

View File

@@ -151,7 +151,7 @@ class BaseOpenAILLMService(LLMService):
"""
# 1. Initialize default_settings with hardcoded defaults
default_settings = self.Settings(
model="gpt-4o",
model="gpt-4.1",
system_instruction=None,
frequency_penalty=NOT_GIVEN,
presence_penalty=NOT_GIVEN,