mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-08-03 13:27:16 +03:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user