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

智谱数据结构兼容 #322

Open
6 tasks done
MichaelIT opened this issue Jan 22, 2025 · 1 comment
Open
6 tasks done

智谱数据结构兼容 #322

MichaelIT opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@MichaelIT
Copy link

MichaelIT commented Jan 22, 2025

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整浏览项目 README 和项目文档并未找到解决方案
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我将以礼貌和尊重的态度提问,不得使用不文明用语 (包括在此发布评论的所有人同样适用, 不遵守的人将被 block)
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
智谱请求出错.
{"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 } } ] }'

预期结果
返回正常的数据

日志信息

相关截图 (如果有)

@MichaelIT MichaelIT added the bug Something isn't working label Jan 22, 2025
@Issues-translate-bot
Copy link

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
}
}
]
}'

Expected results
Return normal data

Log information

Relevant screenshots (if any)

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

2 participants