-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
例行检查
- [ x] 我已确认目前没有类似 issue
- [x ] 我已确认我已升级到最新版本
- [x ] 我已完整查看过项目 README,已确定现有版本无法满足需求
- [x ] 我理解并愿意跟进此 issue,协助测试和提供反馈
- [x ] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭
功能描述
有些场景需要用模型响应对象id进行对比,id作为唯一值,希望能把id写入数据库
应用场景
主要是用来和第三方系统做对比
响应信息
id string
本次调用的唯一标识符。每个chunk对象有相同的 id。
{
"choices": [
{
"message": {
"role": "assistant",
"content": "我是阿里云开发的一款超大规模语言模型,我叫通义千问。"
},
"finish_reason": "stop",
"index": 0,
"logprobs": null
}
],
"object": "chat.completion",
"usage": {
"prompt_tokens": 3019,
"completion_tokens": 104,
"total_tokens": 3123,
"prompt_tokens_details": {
"cached_tokens": 2048
}
},
"created": 1735120033,
"system_fingerprint": null,
"model": "qwen-plus",
"id": "chatcmpl-6ada9ed2-7f33-9de2-8bb0-78bd4035025a"
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request