-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【高级编排】实验室预约流程使用fastgpt推荐的模型(FastAI、月之暗面等LLM)可以正确判断调用哪个工具和接口,使用智谱AI时则报错 #1449
Comments
config.josn配置文件里面好像有个配置,toolchoice,functioncalltoice。看看设置对没对 |
工具调用除了chatgpt以外需要 配置以下参数。 "toolChoice": false,
"functionCall": false,
"defaultConfig": {
"temperature": 0.5,
"max_tokens": 2048
} 我测试过的模型: deepseek: |
toolchoice,functioncalltoice 改了配置之后虽然不报错了,但是还是没办法调用工具 |
@romejiang 大佬您好,向您请教一下问题。 请问有什么方法,能正常调用qwen1.5:72b、llama3:70b的工具调用能力? 官方文档对配置的介绍:"toolChoice": true, // 是否支持工具选择(分类,内容提取,工具调用会用到。目前只有gpt支持) 提示词模式的报错:System 二、当用户获取黄河大型水库实时水情信息时,按以下方式执行: 工具使用了 JSON Schema 的格式声明,其中 toolId 是工具的 description 是工具的描述,parameters 是工具的参数,包括参数的类型和描述,required 是必填参数的列表。 请你根据工具描述,决定回答问题或是使用工具。在完成任务过程中,USER代表用户的输入,TOOL_RESPONSE代表工具运行结果。ASSISTANT 代表你的输出。 例如: USER: 你好呀 现在,我们开始吧!下面是你本次可以使用的工具: """ 下面是正式的对话内容: USER: 查询黄河大型水库实时水情信息 |
"toolChoice": false,
"functionCall": false, 这个选项非 openai 的接口必须设成false。所以除了openai以外,用其他LLM的API驱动工具调用,必须是“提示词模式”的。 至于效果,你可以调整系统提示词,然后就是换模型。我用的 llama3-70b-instruct 和 deepseek-coder 基本能满足我的要求。 |
@romejiang 感谢解答。 |
例行检查
你的版本
问题描述, 日志截图
【高级编排】实验室预约流程使用fastgpt推荐的模型(FastAI、月之暗面等LLM)可以正确判断调用哪个工具和接口,使用智谱AI时则报错
复现步骤
实验室预约,工具选择节点模型选择智谱AI,然后测试
预期结果
报错:Cannot read properties of undefined (reading 'value')
相关截图
The text was updated successfully, but these errors were encountered: