星火工具调用失败(响应阶段)
Brought to you by:
xjfkkk
Originally created by: c121914yu
例行检查
问题描述
星火使用 tool 调用时候失败,可以返回参数,但是利用工具响应发起请求时,会报错。
测试请求体: 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"
}