Authorization: Bearer ********************
{
"model": "gpt-3.5-turbo-instruct",
"temperature": 0.7,
"max_tokens": 100,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"prompt": "天气非常好",
"logprobs": 1
}
curl --location --request POST 'https://api.apicore.ai/v1/completions' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-3.5-turbo-instruct",
"temperature": 0.7,
"max_tokens": 100,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"prompt": "天气非常好",
"logprobs": 1
}'
{
"id": "string",
"object": "string",
"created": 0,
"model": "string",
"choices": [
{
"text": "string",
"index": 0,
"logprobs": {
"tokens": [
"string"
],
"token_logprobs": [
0
],
"top_logprobs": [
{
",": "string",
"我": "string",
"bytes:\\x82": "string"
}
],
"text_offset": [
0
]
},
"finish_reason": "string"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}