pdfs-2024-09-25 in the request header to enable this Beta function:anthropic-beta: pdfs-2024-09-25, prompt-caching-2024-07-31anthropic-version: 2023-06-01x-api-key request header.anthropic-version header native API is mandatory to fill in, otherwise an error will be reported. Although there is no mandatory requirement here, it is still recommended to fill it in. If not filled in, the latest version will be used by default, such as: 2023-06-01claude-3-opus C3 large cup multi-modalclaude-3-sonnet C3 medium cup multi-modalclaude-2claude-instant-1https://api.anthropic.com/v1/messages to any of the following:https://apic.ohmygpt.com/v1/messageshttps://aigptx.top/v1/messages curl --location --request POST 'https://cn2us02.opapi.win/v1/messages' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-opus",
"stream": false,
"messages": [
{
"role": "user",
"content": "Say test"
}
],
"max_tokens": 4096
}'{
"completion": " 你好!我是一个由Anthropic公司开发的AI助手。我叫Clara。我被训练来进行友好、有帮助的对话。很高兴认识你!我希望我们的对话能让你感到开心和放松。如果有什么我可以帮到你的,请一定告诉我。",
"stop_reason": "stop_sequence",
"model": "claude-2.0",
"stop": "\n\nHuman:",
"log_id": "4fbf887cd2fd3b375d7da3b1cb81231b9401ff023772c8caf6d35bcac7ec9dd5"
}