🚀 Auto-deploy: BotVPS atualizado em 14/05/2026 10:11:13

This commit is contained in:
2026-05-14 10:11:13 +00:00
parent 6503770898
commit aa04276c9a
4 changed files with 53 additions and 10 deletions
+9 -5
View File
@@ -31,7 +31,7 @@ async def query_agent_async(prompt: str, override_provider=None, chat_history=No
# Identifica o modelo padrão baseado no provedor
if provider == "minimax":
current_model = cfg.get("minimax_model") or "abab7-preview"
current_model = cfg.get("minimax_model") or "minimax-2.7"
model_desc = f"**{current_model}** via Hermes (MiniMax API)"
elif provider == "openrouter":
current_model = cfg.get("openrouter_model") or "qwen/qwen-2.5-72b-instruct"
@@ -150,12 +150,16 @@ DIRETRIZES:
if t_name in all_tools:
tool_info = all_tools[t_name]
func = tool_info["func"]
print(f"[AGENT] Executando {t_name} com argumento: {arg[:50]}...")
import inspect
sig = inspect.signature(func)
has_params = len(sig.parameters) > 0
print(f"[AGENT] Executando {t_name}{f' com argumento: {arg[:50]}' if arg and has_params else ''}...")
if asyncio.iscoroutinefunction(func):
obs = await func(arg) if arg else await func()
obs = await func(arg) if (arg and has_params) else await func()
else:
obs = func(arg) if arg else func()
obs = func(arg) if (arg and has_params) else func()
if isinstance(obs, dict):
obs = obs.get("output") or obs.get("message") or str(obs)