Remove leftover debug logging in message handler

logger.error(current_model) fired on every incoming message and
spammed the error log with the model name; the accompanying
'# What is this? ^^^' note was dead. Drop both; the vision
auto-switch logic is unchanged.
This commit is contained in:
Father Bot
2025-12-07 09:21:57 +03:00
parent 43aa46a872
commit 7123bd14a1
-4
View File
@@ -460,10 +460,6 @@ async def message_handle(update: Update, context: CallbackContext, message=None,
async with user_semaphores[user_id]:
if current_model == "gpt-4-vision-preview" or current_model == "gpt-4o" or update.message.photo is not None and len(update.message.photo) > 0:
logger.error(current_model)
# What is this? ^^^
if current_model != "gpt-4o" and current_model != "gpt-4-vision-preview":
current_model = "gpt-4o"
db.set_user_attribute(user_id, "current_model", "gpt-4o")