{
"model": "string",
"messages": [
{
"content": "string",
"role": "string",
"tool_call_id": "string"
}
],
"max_tokens": 0,
"top_p": 0,
"logit_bias": null,
"user": "string",
"n": 0,
"stop": "string",
"stream": true,
"presence_penalty": 0,
"temperature": 0,
"frequency_penalty": 0,
"response_format": {
"type": "string",
"json_schema": {
"description": "string",
"name": "string",
"strict": true,
"schema": {}
}
},
"seed": 0,
"tools": [
{
"type": "string",
"function": {
"description": "string",
"name": "string",
"parameters": {}
}
}
],
"tool_choice": "string"
}
curl --location --request POST 'https://api.chatkore.com/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"messages": [
{
"content": "string",
"role": "string",
"tool_call_id": "string"
}
],
"max_tokens": 0,
"top_p": 0,
"logit_bias": null,
"user": "string",
"n": 0,
"stop": "string",
"stream": true,
"presence_penalty": 0,
"temperature": 0,
"frequency_penalty": 0,
"response_format": {
"type": "string",
"json_schema": {
"description": "string",
"name": "string",
"strict": true,
"schema": {}
}
},
"seed": 0,
"tools": [
{
"type": "string",
"function": {
"description": "string",
"name": "string",
"parameters": {}
}
}
],
"tool_choice": "string"
}'
{
"id": "string",
"object": "string",
"created": 0,
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string",
"tool_calls": [
{
"id": "string",
"type": "string",
"function": {
"name": "string",
"arguments": "string"
}
}
]
},
"finish_reason": "string"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
},
"system_fingerprint": "string"
}