Testing with qwen and updating tools
This commit is contained in:
+3
-1
@@ -63,7 +63,9 @@ class TelegramHelper:
|
||||
|
||||
await context.bot.delete_message(chat_id=update.effective_chat.id, message_id=status_message.message_id)
|
||||
del self.bot.processing_status[user_id]
|
||||
await update.message.reply_text(response)
|
||||
response = response.replace("<think>", "<blockquote expandable><b>Thinking...</b>").replace("</think>", "</blockquote>")
|
||||
# Return response as html message
|
||||
await update.message.reply_html(response)
|
||||
|
||||
except Exception as e:
|
||||
logging.error(f"An error occurred: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user