Перейти к основному содержимому

Объект completion

Поля

FieldTypeDescription
idstringUnique identifier for the completion
choicesarrayCompletion choices generated for the prompt
createdintegerUnix timestamp in seconds
modelstringModel used for the completion
system_fingerprintstringFingerprint of the backend configuration
objectstringObject type, typically chat.completion
usageobjectUsage statistics for the request
completion_tokensintegerOutput token count
prompt_tokensintegerInput token count
total_tokensintegerTotal token count

Пример

{
"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"
}

Связанные страницы