Authorization: Bearer ********************
top_p
但不是两者同时使用。temperature
但不是两者同时使用。{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "晚上好"
}
],
"max_tokens": 1688,
"temperature": 0.5,
"stream": false
}
curl --location --request POST 'https://api.gpt.ge/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "晚上好"
}
],
"max_tokens": 1688,
"temperature": 0.5,
"stream": false
}'
{
"id": "chatcmpl-A1iMgDLzZtUJ9QDpfqDLxKH0zfUnp",
"object": "chat.completion",
"created": 1724972230,
"model": "gpt-4o-2024-05-13",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "晚上好!有什么我可以帮你的吗?",
"refusal": null
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 10,
"total_tokens": 19
},
"system_fingerprint": "fp_157b3831f5"
}