We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1、使用的最新主干代码、最新模型仓库 2、vllm版本更改为0.6.6.post,cuda版本12.6 3、使用openai_api_server.py启动
No response
问题现象:不携带工具的情况下,正常流式返回;请求携带了参数,触发了工具也是正常流式返回,但是没有触发工具则是非流式返回。
测试采用的Openai的rest接口进行测试,测试参数如下: { "model": "glm-4", "messages": [ { "role": "system", "content": "你是一个优秀的智能问答助手" }, { "role": "user", "content": "你好啊,请用100字打招呼" } ], "temperature": 0.7, "top_p": 1.0, "stream": true, "tool_choice": "auto", "tools": [ { "type": "function", "function": { "name": "weather_check", "description": "天气查询", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "城市名称" } }, "required": [ "city" ] } } } ] }
携带工具时未命中工具的消息均正常流式返回
The text was updated successfully, but these errors were encountered:
zhipuch
No branches or pull requests
System Info / 系統信息
1、使用的最新主干代码、最新模型仓库
2、vllm版本更改为0.6.6.post,cuda版本12.6
3、使用openai_api_server.py启动
Who can help? / 谁可以帮助到您?
No response
Information / 问题信息
Reproduction / 复现过程
问题现象:不携带工具的情况下,正常流式返回;请求携带了参数,触发了工具也是正常流式返回,但是没有触发工具则是非流式返回。
测试采用的Openai的rest接口进行测试,测试参数如下:
{
"model": "glm-4",
"messages": [
{
"role": "system",
"content": "你是一个优秀的智能问答助手"
},
{
"role": "user",
"content": "你好啊,请用100字打招呼"
}
],
"temperature": 0.7,
"top_p": 1.0,
"stream": true,
"tool_choice": "auto",
"tools": [
{
"type": "function",
"function": {
"name": "weather_check",
"description": "天气查询",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "城市名称"
}
},
"required": [
"city"
]
}
}
}
]
}
Expected behavior / 期待表现
携带工具时未命中工具的消息均正常流式返回
The text was updated successfully, but these errors were encountered: