fix: channel model mention

This commit is contained in:
Timothy Jaeryang Baek 2025-12-23 10:42:33 +04:00
parent 758325a203
commit 5995771583

View file

@ -1023,6 +1023,7 @@ async def model_response_handler(request, channel, message, user):
if res:
if res.get("choices", []) and len(res["choices"]) > 0:
await update_message_by_id(
request,
channel.id,
response_message.id,
MessageForm(
@ -1037,6 +1038,7 @@ async def model_response_handler(request, channel, message, user):
)
elif res.get("error", None):
await update_message_by_id(
request,
channel.id,
response_message.id,
MessageForm(