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
Bot detected the issue body's language is not English, translate it automatically.
Title: Zhi spectrum data structure is compatible
I have confirmed that there is currently no similar issue
I have confirmed that I have upgraded to the latest version
I have fully browsed the project README and project documentation and did not find a solution
I understand and am willing to follow up on this issue, assist in testing and provide feedback
I will ask questions in a polite and respectful manner, without using uncivilized language (the same applies to everyone who posts comments here, those who do not comply will be blocked)
I understand and acknowledge the above content, and understand that project maintainers have limited energy. Issues that do not follow the rules may be ignored or closed directly
Problem description
An error occurred in the wisdom spectrum request. {"error":{"message":"tools[0].function.name: cannot be empty (code: 1214)","type":"chatnio_api_error"}}
Steps to reproduce
curl -X POST 'http://oneapi.test.com/v1/chat/completions'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer sk-xxxxxxxxx'
-d '{
"model": "glm-4-air",
"messages": [
{
"role": "system",
"content": ""
},
{
"role": "user",
"content": "Historical conversation: [] The user asked this question: Hello. Does reference resolution need to be resolved: No -> Thinking: So keep the original question -> Return to question: Hello"
}
],
"stream": false,
"temperature": 0.7,
"top_p": 0.7,
"tools": [
{
"type": "web_search",
"web_search": {
"enable": true,
"search_result": true
}
}
]
}'
问题描述
智谱请求出错.
{"error":{"message":"tools[0].function.name:不能为空 (code: 1214)","type":"chatnio_api_error"}}
复现步骤
curl -X POST 'http://oneapi.test.com/v1/chat/completions' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer sk-xxxxxxxxx' \ -d '{ "model": "glm-4-air", "messages": [ { "role": "system", "content": "" }, { "role": "user", "content": "历史对话:[] 用户本次提问:你好 是否需要指代消解:否 -> 思考:因此保留原始问题 -> 返回问题:你好" } ], "stream": false, "temperature": 0.7, "top_p": 0.7, "tools": [ { "type": "web_search", "web_search": { "enable": true, "search_result": true } } ] }'
预期结果
返回正常的数据
日志信息
相关截图 (如果有)
The text was updated successfully, but these errors were encountered: