From c97cf68393a9605ab37f57e74879938b6557703d Mon Sep 17 00:00:00 2001 From: Asankilp Date: Mon, 10 Feb 2025 23:54:01 +0800 Subject: [PATCH] =?UTF-8?q?:fire:=20=E7=A7=BB=E9=99=A4=E5=AF=B9moonshot?= =?UTF-8?q?=E5=86=85=E7=BD=AE=E5=87=BD=E6=95=B0=E7=9A=84=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=A4=84=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/marsho.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nonebot_plugin_marshoai/marsho.py b/nonebot_plugin_marshoai/marsho.py index 3438169a..54ef812b 100644 --- a/nonebot_plugin_marshoai/marsho.py +++ b/nonebot_plugin_marshoai/marsho.py @@ -340,13 +340,13 @@ async def marsho( while choice.message.tool_calls != None: # await UniMessage(str(response)).send() tool_calls = choice.message.tool_calls - try: - if tool_calls[0]["function"]["name"].startswith("$"): - choice.message.tool_calls[0][ - "type" - ] = "builtin_function" # 兼容 moonshot AI 内置函数的临时方案 - except: - pass + # try: + # if tool_calls[0]["function"]["name"].startswith("$"): + # choice.message.tool_calls[0][ + # "type" + # ] = "builtin_function" # 兼容 moonshot AI 内置函数的临时方案 + # except: + # pass tool_msg.append(choice.message) for tool_call in tool_calls: try: