Fix missing escape_html in agy_engine.py for conversation title updates
This commit is contained in:
@@ -5,6 +5,7 @@ import time
|
||||
import re
|
||||
import shutil
|
||||
import asyncio
|
||||
import html
|
||||
import signal
|
||||
import logging
|
||||
from pathlib import Path
|
||||
@@ -15,6 +16,12 @@ from config import settings
|
||||
|
||||
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 = {
|
||||
"gemini-3.7-flash-auto": "Gemini 3.7 Flash Auto (پیشفرض هوشمند ⚡/🧠)",
|
||||
|
||||
Reference in New Issue
Block a user