Revert "fix model name for anthropic model before fallback to OpenRouter"

This reverts commit f4df0087b1.
This commit is contained in:
Marko Kraemer 2025-07-28 08:10:08 +02:00 committed by GitHub
parent 785964d093
commit 68591eb49d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -509,9 +509,7 @@ Here are the XML tools available with examples:
if ("AnthropicException - Overloaded" in str(e)):
logger.error(f"AnthropicException - Overloaded detected - Falling back to OpenRouter: {str(e)}", exc_info=True)
nonlocal llm_model
# Remove "-20250514" from the model name if present
model_name_cleaned = llm_model.replace("-20250514", "")
llm_model = f"openrouter/{model_name_cleaned}"
llm_model = f"openrouter/{llm_model}"
auto_continue = True
continue # Continue the loop
else: