Skip to content

チャット完了オブジェクト

パラメータ説明
idstringチャット完了の一意識別子
choicesarrayチャット完了の選択肢リスト。n が 1 より大きい場合、複数の選択肢があり得る
createdintegerチャット完了が作成された Unix タイムスタンプ(秒)
modelstringチャット完了に使用されたモデル
system_fingerprintstringモデルが動作したバックエンド構成を表すフィンガープリント
objectstringオブジェクトタイプ。常に chat.completion
usageobject完了リクエストの使用統計
completion_tokensinteger生成された完了内のトークン数
prompt_tokensintegerプロンプト内のトークン数
total_tokensintegerリクエストで使用されたトークン総数(プロンプト + 完了)
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
  }
}