Chat completion object

id

string

Unique identifier for chat completion

choices

array

Chat completion options list. If n is greater than 1, there can be multiple options.

created

integer

Unix timestamp of chat creation completion (seconds)

model

string

Models for chat completion

system_fingerprint

string

This fingerprint represents the backend configuration of the model run

object

string

Object type, always chat.completion

usage

object

Fulfillment of requested usage statistics

completion_tokens

integer

Number of tags in completions generated

prompt_tokens

integer

Number of tags in prompt

total_tokens

integer

Total number of tags used in request (hint + complete)

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

Last updated