mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-06-28 00:02:04 +00:00
🐛 添加调试日志以记录工具调用及其参数
This commit is contained in:
parent
a857dbf6c2
commit
802265ca22
1 changed files with 2 additions and 0 deletions
|
|
@ -480,6 +480,8 @@ async def process_messages(context_id: int, is_group: bool = True):
|
|||
new_messages.append(llm_reply)
|
||||
|
||||
for tool_call in message.tool_calls:
|
||||
logger.debug(f"处理工具调用:{tool_call.function.name} 参数:{tool_call.function.arguments}")
|
||||
|
||||
tool_name = tool_call.function.name
|
||||
try:
|
||||
tool_args = json.loads(tool_call.function.arguments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue