You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题描述
工具调用推理使用通义官方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直连可以正常工作。通过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
The text was updated successfully, but these errors were encountered: