How do I add Leiolai to LibreChat?
Add a custom Leiolai endpoint in librechat.yaml using the /v1 base URL, leiolai-1 model ID, and an API key supplied through an environment variable. Restart LibreChat with that configuration, then choose Leiolai from the endpoint selector.
Where does the endpoint configuration go?
In librechat.yaml, add Leiolai under endpoints.custom. Set name to Leiolai, baseURL to https://api.leiolai.com/v1, and apiKey to the LEIOLAI_API_KEY environment reference. Keep the real value in the environment used by LibreChat.
Which model should I list?
In LibreChat’s Leiolai endpoint configuration, list leiolai-1 in models.default and set fetch to false. Use modelDisplayLabel: Leiolai for the display label.
How does LibreChat find the configuration in a container?
Mount LibreChat’s Leiolai configuration file and supply LEIOLAI_API_KEY in the container environment. Restart LibreChat after changing the configuration so the process loads the endpoint.
Which key works when no mode field is configured?
Use a Leiolai Private-only key for confidential conversations. A restricted key can omit mode.
Understand mode restrictionsHow do I keep conversation titles on the right model?
Set titleConvo to true and titleModel to current_model in LibreChat’s Leiolai endpoint configuration. This lets title requests use the selected model rather than a different model identifier that may not be available through the configured endpoint.
What should I check if Leiolai does not appear?
If Leiolai is missing in LibreChat, confirm that the configuration is loaded, the YAML is valid, and LibreChat restarted after the change. Then check the custom endpoint name and model list.
What should I check if the model appears but cannot answer?
Check that the running process has the environment key, the URL includes /v1, and the model is leiolai-1. Read the error code for a mode conflict, exhausted budget, or invalid field.
Troubleshoot the requestHow do I compare the cost of longer conversations?
Longer LibreChat history sent to Leiolai adds input tokens, while longer Leiolai answers add output tokens. Estimate both at the selected mode and effort. Use the returned usage counts when available to understand the cost of the actual conversation.
Read input and output usage