完成对象
参数 | 类型 | 描述 |
---|---|---|
id | string | 完成的唯一标识符 |
choices | array | 模型为输入提示生成的完成选项列表 |
created | integer | 创建完成的Unix时间戳(秒) |
model | string | 用于完成的模型 |
system_fingerprint | string | 该指纹表示模型运行的后端配置 |
object | string | 对象类型,总是 "text_completion" |
usage | object | 完成请求的使用统计信息 |
completion_tokens | integer | 生成的完成中的标记数 |
prompt_tokens | integer | 提示中的标记数 |
total_tokens | integer | 请求中使用的标记总数(提示 + 完成) |
{
"id": "chatcmpl-AFNKwYwdb3KmPV3MT7yT0TBylkuH5",
"object": "chat.completion",
"created": 1728227990,
"model": "gpt-4o-2024-08-06",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "This is a test!"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 13,
"completion_tokens": 5,
"total_tokens": 18
},
"system_fingerprint": "fp_67802d9a6d"
}
修改于 2024-10-06 15:21:50