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

通义千问渠道工具调用无法正常使用 #1971

Open
5 tasks done
gaord opened this issue Dec 8, 2024 · 0 comments
Open
5 tasks done

通义千问渠道工具调用无法正常使用 #1971

gaord opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gaord
Copy link

gaord commented Dec 8, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
工具调用推理使用通义官方api直连可以正常工作。通过oneapi 0.6.8 通义千问渠道报如下错误:
{"error":{"message":"\u003c400\u003e InternalError.Algo.InvalidParameter: messages with role \"tool\" must be a response to a preceeding message with \"tool_calls\". (request id: 2024120807241690514551374593572)","type":"upstream_error","param":"400","code":"bad_response_status_code"}}

复现步骤
工具调用过程的第一步,函数调用能够正常执行得到结果。这个错误是在第二步,调用结果给模型输出最终答案时发生。
预期结果
通义渠道能够处理官方支持的工具调用api

@gaord gaord added the bug Something isn't working label Dec 8, 2024
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

1 participant