🚀 Auto-deploy: BotVPS atualizado em 24/03/2026 21:36:58

This commit is contained in:
2026-03-24 21:36:58 +00:00
parent c2273a13f0
commit 27d12ff9c4
4 changed files with 40 additions and 14 deletions

View File

@@ -113,8 +113,8 @@ async def process_logic(update: Update, context: ContextTypes.DEFAULT_TYPE, user
reply = await query_agent_async(user_msg, override_provider=cfg.get("active_provider"))
# Envia resposta (Texto)
# Remove o bloco <REFINED> se houver, pois no Telegram polui
reply_clean = re.sub(r'<REFINED>.*?</REFINED>', '', reply, flags=re.DOTALL).strip()
# Remove apenas as tags <REFINED> e </REFINED>, mantendo o conteúdo
reply_clean = reply.replace('<REFINED>', '').replace('</REFINED>', '').strip()
await update.message.reply_text(reply_clean)
# Se foi por voz, responde por voz também