Skip to content

Instantly share code, notes, and snippets.

@AlexanderHolmeset
Created March 3, 2023 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexanderHolmeset/9e1f4c18822512064010188131cfe2ca to your computer and use it in GitHub Desktop.
Save AlexanderHolmeset/9e1f4c18822512064010188131cfe2ca to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"created": {
"type": "integer"
},
"model": {
"type": "string"
},
"choices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"index": {
"type": "integer"
},
"finish_reason": {
"type": "string"
},
"logprobs": {}
},
"required": [
"text",
"index",
"finish_reason",
"logprobs"
]
}
},
"usage": {
"type": "object",
"properties": {
"completion_tokens": {
"type": "integer"
},
"prompt_tokens": {
"type": "integer"
},
"total_tokens": {
"type": "integer"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment