Update main.py

This commit is contained in:
Classic298 2026-04-03 16:45:03 +02:00 • committed by DrMelone
parent 57d4c35a90
commit 7c527837f0

View file

@ -1833,7 +1833,7 @@ async def chat_completion(
finally:
raise # re-raise to ensure proper task cancellation handling
except Exception as e:
log.exception('Error processing chat payload: %s', e)
log.error('Error processing chat payload: %s', e)
if metadata.get('chat_id') and metadata.get('message_id'):
# Update the chat message with the error
try: