From c32d4c47e84bfa8f486e425fb8af5fffb0a65ed5 Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Thu, 30 Apr 2026 18:27:25 +0000 Subject: [PATCH] Finalizing Nemotron hierarchy --- ai_agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai_agent.py b/ai_agent.py index 23dde94..5e08f70 100644 --- a/ai_agent.py +++ b/ai_agent.py @@ -87,14 +87,14 @@ DIRETRIZES: try: res_dict = await call_llm(provider, current_model, system_prompt + current_history) - # Lógica de FALLBACK: Se o Gemini falhar, tenta o Qwen + # Lógica de FALLBACK: Se o Nemotron falhar, tenta o Qwen if (res_dict.get("content", "").startswith("Erro OpenRouter") or "error" in res_dict.get("content", "").lower()) and provider == "openrouter": backup_model = "qwen/qwen-2.5-72b-instruct" print(f"⚠️ [FALLBACK] Falha no Nemotron. Tentando {backup_model}...") res_dict = await call_llm("openrouter", backup_model, system_prompt + current_history) except Exception as e: - # Lógica de EMERGÊNCIA: Se houver exceção no Gemini, tenta o Qwen + # Lógica de EMERGÊNCIA: Se houver exceção no Nemotron, tenta o Qwen print(f"⚠️ [EMERGENCY FALLBACK] Exceção no Nemotron ({str(e)}). Tentando {backup_model}...") try: backup_model = "qwen/qwen-2.5-72b-instruct"