修改chatglm接入为使用新版openai语法,解决函数调用报错的问题
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user