채팅 완료 객체
| 매개변수 | 유형 | 설명 |
|---|---|---|
| id | string | 채팅 완료의 고유 식별자 |
| choices | array | 채팅 완료 선택 목록. n이 1보다 크면 여러 선택지가 있을 수 있음 |
| created | integer | 채팅 완료가 생성된 Unix 타임스탬프(초) |
| model | string | 채팅 완료에 사용된 모델 |
| system_fingerprint | string | 모델이 실행된 백엔드 구성을 나타내는 지문 |
| object | string | 객체 유형, 항상 chat.completion |
| usage | object | 완료 요청의 사용 통계 |
| completion_tokens | integer | 생성된 완료의 토큰 수 |
| prompt_tokens | integer | 프롬프트의 토큰 수 |
| total_tokens | integer | 요청에서 사용된 총 토큰 수(프롬프트 + 완료) |
JSON
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo-0613",
"system_fingerprint": "fp_44709d6fcb",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?",
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}