Why use the store mode?

You can use the store mode to store messages genereted by one of the supported LLM providers (OpenAI or Anthropic) or from any other provider. This mode is ideal for scenarios where you want to use your own instance of the LLM provider (or even a custom one) and store the messages in a structured way.

Analyze data

Gain insights, control cost and understand user patterns by analyzing AI interactions. Optimize your application based on data-driven decisions.

Standardized format

Convert any LLM response into a standardized object for easy comparison and analysis across different models. Add custom metadata to enhance filtering and analysis.

Store a message

Storing a message is as simple as calling the store method. You can store a message genereted by one of the supported providers (OpenAI or Anthropic) or any other provider (or even a custom one).

Select a provider

Custom storing system

In case you don’t want to use the Lira integrated storing system and dashboard, you can provide a custom callback that takes the store object as a parameter. This way you can store the message object in your database, so the data never leaves your server.

See Custom storing system for more information.