Update OpenRouter default model

This commit is contained in:
Mark Backman
2026-05-18 10:26:25 -04:00
parent 4b98c2b7f1
commit 6b42aaead8

View File

@@ -53,7 +53,7 @@ class OpenRouterLLMService(OpenAILLMService):
Args: Args:
api_key: The API key for accessing OpenRouter's API. If None, will attempt api_key: The API key for accessing OpenRouter's API. If None, will attempt
to read from environment variables. to read from environment variables.
model: The model identifier to use. Defaults to "openai/gpt-4o-2024-11-20". model: The model identifier to use. Defaults to "openai/gpt-4.1".
.. deprecated:: 0.0.105 .. deprecated:: 0.0.105
Use ``settings=OpenRouterLLMService.Settings(model=...)`` instead. Use ``settings=OpenRouterLLMService.Settings(model=...)`` instead.
@@ -64,7 +64,7 @@ class OpenRouterLLMService(OpenAILLMService):
**kwargs: Additional keyword arguments passed to OpenAILLMService. **kwargs: Additional keyword arguments passed to OpenAILLMService.
""" """
# 1. Initialize default_settings with hardcoded defaults # 1. Initialize default_settings with hardcoded defaults
default_settings = self.Settings(model="openai/gpt-4o-2024-11-20") default_settings = self.Settings(model="openai/gpt-4.1")
# 2. Apply direct init arg overrides (deprecated) # 2. Apply direct init arg overrides (deprecated)
if model is not None: if model is not None: