Custom storing system
You can provide a custom callback
that takes the store object as a parameter instead of using the Lira integrated storing system and dashboard. This allows you to store the message object in your database, so the data never leaves your server.
Callback function
The callback function is used to store the message object in your database or any other storage system. The callback function receives the store object as a parameter. The store object is a data structure that holds the input, output, request time, and error of a message.
Store object
The store object is a data structure that holds the input, output, request time, and error of a message.
The same input object that was sent to the model to generate the response.
Input object schema.
Pluse the optional provider
field that holds the provider that was used to generate the response.
The same output object that was generated by the model, described in the stream section. Output object stream schema.
The request time object holds the time range it took to generate the response.
The error object holds the error that was thrown during the generation of the response.