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

星火工具调用失败(响应阶段) #1570

Open
5 tasks done
c121914yu opened this issue Jun 27, 2024 · 0 comments
Open
5 tasks done

星火工具调用失败(响应阶段) #1570

c121914yu opened this issue Jun 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@c121914yu
Copy link
Collaborator

例行检查

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

问题描述
星火使用 tool 调用时候失败,可以返回参数,但是利用工具响应发起请求时,会报错。
image

测试请求体: model

{
  "model": "SparkDesk-v3.5,
  "temperature": 0,
  "stream": false,
  "messages": [
    {
      "role": "user",
      "content": "几点了"
    },
    {
      "role": "assistant",
      "tool_calls": [
        {
          "id": "call_23f1a7ad8104455db939b812611fa560",
          "type": "function",
          "function": {
            "name": "nYGo9W",
            "arguments": ""
          }
        }
      ]
    },
    {
      "tool_call_id": "call_23f1a7ad8104455db939b812611fa560",
      "role": "tool",
      "name": "nYGo9W",
      "content": "{\n  \"time\": \"2024-06-27 11:20:45 Thursday\"\n}"
    }
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "nYGo9W",
        "description": "获取用户当前时区的时间。",
        "parameters": {
          "type": "object",
          "properties": {},
          "required": []
        }
      }
    }
  ],
  "tool_choice": "auto"
}
@c121914yu c121914yu added the bug Something isn't working label Jun 27, 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