Fix missing escape_html in agy_engine.py for conversation title updates

This commit is contained in:
Antigravity Bot
2026-08-30 13:52:36 +03:30
parent d118de34f0
commit f391c08582
+7
View File
@@ -5,6 +5,7 @@ import time
import re import re
import shutil import shutil
import asyncio import asyncio
import html
import signal import signal
import logging import logging
from pathlib import Path from pathlib import Path
@@ -15,6 +16,12 @@ from config import settings
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def escape_html(text: str) -> str:
"""Safely escapes text for Telegram HTML parse mode."""
if not text:
return ""
return html.escape(str(text), quote=False)
# Available models # Available models
AVAILABLE_MODELS = { AVAILABLE_MODELS = {
"gemini-3.7-flash-auto": "Gemini 3.7 Flash Auto (پیش‌فرض هوشمند ⚡/🧠)", "gemini-3.7-flash-auto": "Gemini 3.7 Flash Auto (پیش‌فرض هوشمند ⚡/🧠)",