{
"messages": [
{
"role": "system",
"content": "你是一个大语言模型机器人"
},
{
"role": "user",
"content": "你好"
}
],
"stream": false,
"model": "gpt-3.5-turbo",
"temperature": 0.5,
"presence_penalty": 0,
"frequency_penalty": 0,
"top_p": 1
}
curl --location --request POST 'https://xiaoai.plus/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"role": "system",
"content": "你是一个大语言模型机器人"
},
{
"role": "user",
"content": "你好"
}
],
"stream": false,
"model": "gpt-3.5-turbo",
"temperature": 0.5,
"presence_penalty": 0,
"frequency_penalty": 0,
"top_p": 1
}'
{
"id": "chatcmpl-AJaak2I8cuhBbdpMor1SikpkWOvSy",
"object": "chat.completion",
"created": 1729232254,
"model":"gpt-3.5-turbo",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "你好,我是AI助手。我是一个虚拟机器人,没有情感,但我可以帮助你回答问题和提供信息。有什么我可以帮助你的吗?"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 27,
"completion_tokens": 57,
"total_tokens": 84
},
"system_fingerprint": null
}