curl --request POST \
--url http://localhost:8080/litellm/anthropic/v1/messages \
--header 'Content-Type: application/json' \
--data '
{
"model": "claude-3-opus-20240229",
"max_tokens": 123,
"messages": [
{
"role": "user",
"content": "<string>"
}
],
"system": "<string>",
"metadata": {
"user_id": "<string>"
},
"stream": true,
"temperature": 0.5,
"top_p": 123,
"top_k": 123,
"stop_sequences": [
"<string>"
],
"tools": [
{
"type": "custom",
"name": "<string>",
"description": "<string>",
"input_schema": {},
"cache_control": {
"type": "ephemeral",
"ttl": "<string>"
},
"display_width_px": 123,
"display_height_px": 123,
"display_number": 123,
"enable_zoom": true,
"max_uses": 123,
"allowed_domains": [
"<string>"
],
"blocked_domains": [
"<string>"
],
"user_location": {
"type": "approximate",
"city": "<string>",
"country": "<string>",
"timezone": "<string>"
}
}
],
"tool_choice": {
"type": "auto",
"name": "<string>",
"disable_parallel_tool_use": true
},
"mcp_servers": [
{
"type": "<string>",
"name": "<string>",
"url": "<string>",
"authorization_token": "<string>",
"tool_configuration": {
"enabled": true,
"allowed_tools": [
"<string>"
]
}
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 123
},
"output_format": {},
"fallbacks": [
"<string>"
]
}
'