Chat
Create chat completion
Generate a model response for a given chat conversation. Supports single queries and multi-turn conversations with system, user, and assistant messages.
post/chat/completions
Request body
Example request
{
"messages": [
{
"tool_calls": [
{
"function": {
"name": "function_name"
}
}
]
}
],
"logit_bias": {
"105": 21.4,
"1024": -10.5
},
"seed": 42,
"tools": [
{
"type": "tool_type",
"function": {
"description": "A description of the function.",
"name": "function_name"
}
}
],
"tool_choice": "tool_name",
"safety_model": "safety_model_name",
"reasoning_effort": "medium"
}Response
200
Example response
{
"choices": [
{
"message": {
"tool_calls": [
{
"function": {
"name": "function_name"
}
}
]
}
}
],
"prompt": [
{
"text": "<s>[INST] What is the capital of France? [/INST]"
}
]
}