top_p
但不是两者。temperature
但不是两者。{
"model": "claude-3-7-sonnet-20250219-thinking",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}
curl --location -g --request POST '{{BASE_URL}}/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219-thinking",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'
{
"id": "msg_015WR4hNXDhJQ23L3eRANTb7",
"model": "claude-3-7-sonnet-20250219",
"object": "chat.completion",
"created": 1740806633,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi there! It's nice to meet you. How can I help you today? I'm ready to assist with information, answer questions, or just chat. What's on your mind?",
"reasoning_content": "The user has just sent a simple greeting of \"Hello!\". I should respond in a friendly, welcoming manner and perhaps offer to help them with anything they might need."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 37,
"completion_tokens": 85,
"total_tokens": 122,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"system_fingerprint": null
}