🚀 Auto-deploy: BotVPS atualizado em 24/03/2026 21:36:58
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user