fix: channel model mention
This commit is contained in:
@@ -1023,6 +1023,7 @@ async def model_response_handler(request, channel, message, user):
|
|||||||
if res:
|
if res:
|
||||||
if res.get("choices", []) and len(res["choices"]) > 0:
|
if res.get("choices", []) and len(res["choices"]) > 0:
|
||||||
await update_message_by_id(
|
await update_message_by_id(
|
||||||
|
request,
|
||||||
channel.id,
|
channel.id,
|
||||||
response_message.id,
|
response_message.id,
|
||||||
MessageForm(
|
MessageForm(
|
||||||
@@ -1037,6 +1038,7 @@ async def model_response_handler(request, channel, message, user):
|
|||||||
)
|
)
|
||||||
elif res.get("error", None):
|
elif res.get("error", None):
|
||||||
await update_message_by_id(
|
await update_message_by_id(
|
||||||
|
request,
|
||||||
channel.id,
|
channel.id,
|
||||||
response_message.id,
|
response_message.id,
|
||||||
MessageForm(
|
MessageForm(
|
||||||
|
|||||||
Reference in New Issue
Block a user