FastGPT icon indicating copy to clipboard operation
FastGPT copied to clipboard

fasgpt 外部使用,不会转发functions或者tools的,同意接口也不会返回functions_call或者tolls_call

Open YC04-23 opened this issue 2 years ago • 4 comments

例行检查

  • [ x] 我已确认目前没有类似 features
  • [ x] 我已确认我已升级到最新版本
  • [ x] 我已完整查看过项目 README,已确定现有版本无法满足需求
  • [ x] 我理解并愿意跟进此 features,协助测试和提供反馈
  • [x] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 features 可能会被无视或直接关闭

功能描述 我也同样碰到这个问题,使用的chatglm和fastgpt,我发现通过fastgpt转发的api接口不会将functions,或tools转发到chatglm里面,在request里面,没有这两个参数 同样的我尝试过阅读过文档,文档里面里面有介绍支持openai标准的functions_call,只需要将配置模型的toolChoice改为true,我同意的也设置了

YC04-23 avatar Dec 27 '23 01:12 YC04-23

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Routine inspection

  • [x] I have confirmed that there are currently no similar features
  • [x] I have confirmed that I have upgraded to the latest version
  • [x] I have fully reviewed the project README and determined that the existing version cannot meet the needs.
  • [x] I understand and am willing to follow up on this feature, assist with testing and provide feedback
  • [x] I understand and agree with the above content, and understand that project maintainers have limited energy. Features that do not follow the rules may be ignored or closed directly

Function description I also encountered this problem. I used chatglm and fastgpt. I found that the api interface forwarded through fastgpt would not forward functions or tools to chatglm. In the request, there are no these two parameters. I have also tried reading the documentation. The documentation introduces functions_call that supports the openai standard. You only need to change the toolChoice of the configuration model to true. I agree with it and set it.

c121914yu avatar Dec 27 '23 01:12 c121914yu

没法复现,测试过程,问题分类与提取模块的tools已经成功发送。请提供更多数据。

c121914yu avatar Jan 01 '24 06:01 c121914yu

image

将应用通过apikey的方式放到别的工具里确实不会触发函数调用,感觉是从入口到末尾之间函数调用参数丢失了 @c121914yu

image

mushan0x0 avatar Jan 07 '24 08:01 mushan0x0

image

将应用通过apikey的方式放到别的工具里确实不会触发函数调用,感觉是从入口到末尾之间函数调用参数丢失了 @c121914yu

image

如果你指的是吧 fastgpt 当做接口中转,那肯定是没有用的

c121914yu avatar Jan 07 '24 09:01 c121914yu