Create Chat Completion
Changed onGenerate text responses using a large language model.
Request
- Base URLhttps://platform.qubrid.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"model": "openai/gpt-oss-120b",
"messages": [
{
"role": "user",
"content": "Summarize this support ticket into bullet-point next steps for the agent."
}
]
}Response
Chat completion generated successfully
Example response
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1710000000,
"model": "openai/gpt-oss-120b",
"choices": [
{
"message": {
"role": "assistant",
"content": "- Identify customer issue\n- Provide resolution steps\n- Follow up with confirmation"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 20,
"completion_tokens": 10,
"total_tokens": 30
},
"x_metrics": {
"ttft_seconds": 0.38,
"tps": 42.1,
"total_time_seconds": 1.24
}
}Changes
- breaking
the request property
//became required - breaking
the request property
//became required - breaking
the
response's property type changed fromstringtoobjectfor status - breaking
the
response's property type changed fromstringtoobjectfor status - breaking
the
response's property type changed fromstringtoobjectfor status - breaking
the
response's property type changed fromstringtoobjectfor status - breaking
the
response's property type changed fromstringtoobjectfor status - breaking
the
response's property type changed fromstringtoobjectfor status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking