思考(claude-3-7-sonnet
POST
{{BASE_URL}}/v1/messages
最后修改时间:2025-03-01 05:22:58
可以通过传递 output-128k-2025-02-19 的 anthropic-beta 标头来启用此功能。
--header "anthropic-beta: output-128k-2025-02-19" \
{
"content": [
{
"type": "thinking",
"thinking": "To approach this, let's think about what we know about prime numbers...",
"signature": "zbbJhbGciOiJFU8zI1NiIsImtakcjsu38219c0.eyJoYXNoIjoiYWJjMTIzIiwiaWFxxxjoxNjE0NTM0NTY3fQ...."
},
{
"type": "text",
"text": "Yes, there are infinitely many prime numbers such that..."
}
]
}
请求参数
Query 参数
string
可选
Header 参数
Content-Type
string
可选
示例值:
application/json
Accept
string
可选
示例值:
*/*
Authorization
string
可选
示例值:
Bearer {{key}}
x-api-key
string
可选
示例值:
{{key}}
string
可选
Body 参数application/json
示例代码
返回响应
修改于 2025-03-01 05:22:58