Callbacks - Large Language Model (LLM)
Store LLM response for a dedicated customer
Endpoint
This endpoint is an HTTP POST
request located at /v1/callbacks/large-language-model
.
Request
Request body
A body is required. Its shape can be found below:
Parameters
It is Gladia’s request identifier (ID). It starts with G-
followed by 8 hexadecimal characters eg. G-0a1bf42e
It is a reference to your customer. It is a string up to 100 characters.
It is a value representing the state of your LLM request. It is a string up to 100 characters.
It is the response of your LLM request. It can either be a JSON object or array.
Response
If the call is successful, it will return an HTTP 204 - No Content
response.
Usage
This endpoint requires that you provide a Gladia API key.
Even if the status of the request is unsuccessful, the
data
property is required. You can use an empty object ({}
) or array ([]
) for example or any value of your choice.With an object passed to data
:
With an array passed to data
.
Was this page helpful?