修复错误代码
This commit is contained in:
@@ -130,8 +130,8 @@ class AiBotPlugin(AbsExtraConfigPlugin):
|
|||||||
# 关闭typing提示
|
# 关闭typing提示
|
||||||
await self.client.set_typing(event.room_id, timeout=0)
|
await self.client.set_typing(event.room_id, timeout=0)
|
||||||
# 打开typing提示
|
# 打开typing提示
|
||||||
if chat_completion.message['result']:
|
if chat_completion.result:
|
||||||
if hasattr(chat_completion.message, 'content'):
|
# if hasattr(chat_completion.message, 'content'):
|
||||||
resp_content = chat_completion.message['content']
|
resp_content = chat_completion.message['content']
|
||||||
response = TextMessageEventContent(msgtype=MessageType.TEXT, body=resp_content, format=Format.HTML,
|
response = TextMessageEventContent(msgtype=MessageType.TEXT, body=resp_content, format=Format.HTML,
|
||||||
formatted_body=markdown.render(resp_content))
|
formatted_body=markdown.render(resp_content))
|
||||||
|
|||||||
Reference in New Issue
Block a user