修改chatglm接入为使用新版openai语法,解决函数调用报错的问题

This commit is contained in:
caojingchen
2024-05-11 16:01:26 +08:00
parent d8913613d8
commit 7e8e760774
2 changed files with 19 additions and 14 deletions

View File

@@ -51,7 +51,7 @@ def register_tool(func: callable):
tool_def = {
"name": tool_name,
"description": tool_description,
"params": tool_params
"parameters": tool_params
}
# print("[registered tool] " + pformat(tool_def))