Authorization: Bearer ********************
{
"model": "string",
"prompt": "string",
"best_of": 0,
"echo": true,
"frequency_penalty": 0,
"logit_bias": {},
"logprobs": null,
"max_tokens": 0,
"n": 0,
"presence_penalty": 0,
"seed": 0,
"stop": "string",
"stream": true,
"suffix": "string",
"temperature": 0,
"user": "string",
"top_p": 0
}
curl --location --request POST 'http://prod-cn.your-api-server.com/v1/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"prompt": "string",
"best_of": 0,
"echo": true,
"frequency_penalty": 0,
"logit_bias": {},
"logprobs": null,
"max_tokens": 0,
"n": 0,
"presence_penalty": 0,
"seed": 0,
"stop": "string",
"stream": true,
"suffix": "string",
"temperature": 0,
"user": "string",
"top_p": 0
}'
{
"id": "cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7",
"object": "text_completion",
"created": 1589478378,
"model": "gpt-3.5-turbo-instruct",
"system_fingerprint": "fp_44709d6fcb",
"choices": [
{
"text": "\n\nThis is indeed a test",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 5,
"completion_tokens": 7,
"total_tokens": 12
}
}