回答用了多少 token
上一节那次请求,DeepSeek 返回了这样一段 JSON(示意):
{
"id": "chatcmpl-123",
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {"role": "assistant", "content": "I have my thesis defense next week."},
"finish_reason": "stop"
}
],
"usage": {"prompt_tokens": 18, "completion_tokens": 9, "total_tokens": 27}
}AI 的回答用了多少 token?只填数字。
提交要求: 只提交最终输出结果,不要添加多余的说明或引号。