Merge pull request #4000 from pipecat-ai/mb/fix-openai-default-model

Fix: Restore default model to gpt-4.1 for OpenAI, Azure
This commit is contained in:
Mark Backman
2026-03-11 16:29:51 -04:00
committed by GitHub
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,