mirror of https://github.com/kortix-ai/suna.git
Revert "fix model name for anthropic model before fallback to OpenRouter"
This reverts commit f4df0087b1
.
This commit is contained in:
parent
785964d093
commit
68591eb49d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue