{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/CompletionResponse", "title": "CompletionResponse", "type": "object", "properties": { "id": { "type": "string", "description": "A unique identifier for the completion" }, "object": { "type": "string", "enum": [ "text_completion" ] }, "created": { "type": "integer", "description": "Unix timestamp of when the completion was created" }, "model": { "type": "string", "description": "The model used for the completion" }, "choices": { "type": "array", "items": { "type": "object", "properties": { "text": { "type": "string", "description": "The generated text" }, "index": { "type": "integer" }, "logprobs": { "type": "object", "nullable": true }, "finish_reason": { "type": "string", "enum": [ "stop", "length" ] } } } }, "usage": { "$ref": "#/components/schemas/Usage" }, "system_fingerprint": { "type": "string", "description": "Fingerprint of the backend configuration" } } }