mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-01-26 18:12:47 +08:00
✨ 修复意外完成原因的访问方式,并添加OpenAI依赖
This commit is contained in:
parent
736a881071
commit
eddd2c3943
@ -412,9 +412,9 @@ async def marsho(
|
||||
else:
|
||||
await UniMessage(str(choice.message.content)).send(reply_to=True)
|
||||
else:
|
||||
await marsho_cmd.finish(f"意外的完成原因:{choice['finish_reason']}")
|
||||
await marsho_cmd.finish(f"意外的完成原因:{choice.finish_reason}")
|
||||
else:
|
||||
await marsho_cmd.finish(f"意外的完成原因:{choice['finish_reason']}")
|
||||
await marsho_cmd.finish(f"意外的完成原因:{choice.finish_reason}")
|
||||
except Exception as e:
|
||||
await UniMessage(str(e) + suggest_solution(str(e))).send()
|
||||
traceback.print_exc()
|
||||
|
@ -27,7 +27,8 @@ dependencies = [
|
||||
"sumy>=0.11.0",
|
||||
"azure-ai-inference>=1.0.0b6",
|
||||
"watchdog>=6.0.0",
|
||||
"nonebot-plugin-apscheduler>=0.5.0"
|
||||
"nonebot-plugin-apscheduler>=0.5.0",
|
||||
"openai>=1.58.1"
|
||||
|
||||
]
|
||||
license = { text = "MIT, Mulan PSL v2" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user