curl --request POST \
--url http://localhost:8080/cohere/v2/chat \
--header 'Content-Type: application/json' \
--data '
{
"model": "command-r-plus",
"messages": [
{
"role": "system",
"content": "<string>",
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_call_id": "<string>",
"tool_plan": "<string>"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
}
],
"tool_choice": "AUTO",
"temperature": 0.5,
"p": 123,
"k": 123,
"max_tokens": 123,
"stop_sequences": [
"<string>"
],
"frequency_penalty": 123,
"presence_penalty": 123,
"stream": true,
"safety_mode": "CONTEXTUAL",
"log_probs": true,
"strict_tool_choice": true,
"thinking": {
"type": "enabled",
"token_budget": 2
},
"response_format": {
"type": "text",
"schema": {}
}
}
'