Skip to content
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

Qwen2-72B-Instruct是否支持fastgpt的工具调用,详细测试过程已提供,忙烦老师指导下。 #3170

Open
1 of 7 tasks
LRCgtp opened this issue Nov 15, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@LRCgtp
Copy link

LRCgtp commented Nov 15, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号:

问题描述, 日志截图
我试了下日志显示调用工具了,但是图出不来。
调测流程:对话-》工具调用(qwen-72b)-》基础图表插件->开始对话(某省电信 1-6 月主营收入分别 120 万元、 300 万元、 450 万元、 500 万元、 560 万元、 650 万元,请结合以上信息给出 1-6 月电信主营收入分布情况,用折线图表示。)-》没有调用工具
工作流
1731659713496
fastGPT工具调用参数配置:
1731659969259

复现步骤

预期结果

相关截图

@LRCgtp LRCgtp added the bug Something isn't working label Nov 15, 2024
@zxd147
Copy link

zxd147 commented Nov 19, 2024

oneapi限制不支持tools参数

curl --location --request POST 'http://192.168.0.245:8016/v1/chat/completions'
--header 'Authorization: Bearer sk-fastgpt'
--header 'Content-Type: application/json'
--data-raw '{
"model": "Qwen2.5-7B-Instruct",
"temperature": 0.01,
"max_tokens": 8000,
"stream": true,
"messages": [
{
"role": "user",
"content": "几点了"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "hCVbIY",
"description": "获取用户当前时区的时间。",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
}
],
"tool_choice": "auto"
}'
{"error":{"message":"[{'type': 'extra_forbidden', 'loc': ('body', 'tools'), 'msg': 'Extra inputs are not permitted', 'input': [{'type': 'function', 'function': {'name': 'hCVbIY', 'description': '获取用户当前时区的时间。', 'parameters': {'type': 'object', 'properties': {}, 'required': []}}}]}, {'type': 'extra_forbidden', 'loc': ('body', 'tool_choice'), 'msg': 'Extra inputs are not permitted', 'input': 'auto'}] (request id: 2024111902202914857224698781662)","type":"upstream_error","param":"400","code":"bad_response_status_code"}}

@heart18z
Copy link

套qwen-Agent的项目运行

@zxd147
Copy link

zxd147 commented Nov 20, 2024

https://doc.tryfastgpt.ai/docs/development/faq/#%E5%A6%82%E4%BD%95%E6%B5%8B%E8%AF%95%E6%A8%A1%E5%9E%8B%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81%E5%B7%A5%E5%85%B7%E8%B0%83%E7%94%A8

你好,我按照这个文档对Qwen2.5进行工具调用测试,提示说one-api没有tool参数,可是我是看您之前说的Qwen是支持工具调用的,请问这是什么原因呢

curl --location --request POST 'http://192.168.0.245:8016/v1/chat/completions'
--header 'Authorization: Bearer sk-fastgpt'
--header 'Content-Type: application/json'
--data-raw '{
"model": "Qwen2.5-7B-Instruct",
"temperature": 0.01,
"max_tokens": 8000,
"stream": true,
"messages": [
{
"role": "user",
"content": "几点了"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "hCVbIY",
"description": "获取用户当前时区的时间。",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
}
],
"tool_choice": "auto"
}'
{"error":{"message":"[{'type': 'extra_forbidden', 'loc': ('body', 'tools'), 'msg': 'Extra inputs are not permitted', 'input': [{'type': 'function', 'function': {'name': 'hCVbIY', 'description': '获取用户当前时区的时间。', 'parameters': {'type': 'object', 'properties': {}, 'required': []}}}]}, {'type': 'extra_forbidden', 'loc': ('body', 'tool_choice'), 'msg': 'Extra inputs are not permitted', 'input': 'auto'}] (request id: 2024111902202914857224698781662)","type":"upstream_error","param":"400","code":"bad_response_status_code"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants