diff --git a/configs.yaml b/configs.yaml index e2f444d..5d70b13 100644 --- a/configs.yaml +++ b/configs.yaml @@ -17,8 +17,8 @@ models: gemini: - name: gemini-2.0-flash label: Gemini - - name: gemini-2.0-pro - label: Gemini Pro + # - name: gemini-2.0-pro # TODO Non funziona, ha un nome diverso + # label: Gemini Pro ollama: - name: gpt-oss:latest label: Ollama GPT diff --git a/src/app/interface/telegram_app.py b/src/app/interface/telegram_app.py index a9fbfbe..5717ff2 100644 --- a/src/app/interface/telegram_app.py +++ b/src/app/interface/telegram_app.py @@ -140,12 +140,12 @@ class TelegramApp: async def __error_handler(self, update: object, context: ContextTypes.DEFAULT_TYPE) -> None: try: - logging.exception(f"Unhandled exception in Telegram handler {context.error}") + logging.error(f"Unhandled exception in Telegram handler: {context.error}") # Try to notify the user in chat if possible if isinstance(update, Update) and update.effective_chat: chat_id = update.effective_chat.id - msg = "Si รจ verificato un errore inatteso. Gli sviluppatori sono stati avvisati." + msg = "An error occurred while processing your request." await context.bot.send_message(chat_id=chat_id, text=msg) except Exception: