Fallback Provider
Run your models locally (Ollama, vLLM, LM Studio or another OpenAI-compatible server) and keep a cloud provider behind them. When a model's own provider is down, Studio sends the call to the fallback provider, and people keep getting answers.
The fallback provider is OpenAI or any OpenAI-compatible provider. It has its own address, key and model. It never appears in the model menu: people keep choosing the models they know.
Set it up
- Go to Admin Settings → Connections.
- Turn on Fallback provider.
- Fill in the card:
- Provider: OpenAI (its address is filled in) or OpenAI-compatible (enter its Base URL, usually ending in
/v1). - API key: the provider's key. It's never shown again. Left blank, the saved key is kept, but only for the same address: a new address needs its own key.
- Model ID: the model at that provider that answers in place of yours.
- API Type: Chat Completions or Responses. A model that needs the other API is switched to it automatically.
- Keep answers at the provider (Responses only): turn it off when the provider must keep nothing (zero data retention).
- Provider: OpenAI (its address is filled in) or OpenAI-compatible (enter its Base URL, usually ending in
- Click Test. Studio asks the model for a very short answer and shows how long it took, or why it failed: a refused key, an address or model that wasn't found, a rate limit, no answer within 30 seconds.
- Click Save on the card, or the page's Save.
When it answers
The fallback provider answers when the model's own provider fails on its side, before any of the answer arrived:
- it can't be reached, or refuses the connection;
- it doesn't answer in time;
- it answers with a server error (5xx), a rate limit (429) or a request timeout (408).
After several failures in a row, Studio stops calling that provider for about a minute and goes straight to the fallback provider. Then it tries the provider again.
It doesn't answer:
- for an error in the request itself, such as a wrong model name or a refused key at the model's own provider: the same request would fail anywhere;
- part-way through an answer: text that already arrived is never repeated;
- for the model Test button next to a model setting, which checks the model you chose;
- when it is at the same address as the model's own provider, which is down too;
- in the chat, while the fallback provider is failing itself.
Where it applies
| Where | How |
|---|---|
| Chat, and programs using Studio's OpenAI-compatible API | Every model of an Ollama or OpenAI-compatible connection, including chat titles, tags and follow-up suggestions |
| Admin Assistant and API Builder assistant | Their model calls |
| AI Assist | Its model calls |
| Workflows and agents | After the catalog's own fallback provider (Agent Catalogs → LLM Providers) |
| Voice agents | After the agent's own fallback model |
| Guardrails, quality scoring, inbox and meetings | The AI check for prompt injection, the quality judge, email and meeting summaries |
Pipes and Hrida Computer models are not affected.
The same instructions go with the request. An Enterprise Agent's system prompt and parameters are sent to the fallback model. Settings that only Ollama understands (context length, keep-alive and the like) are left out, because other providers refuse them.
Models stay listed. While the fallback provider is on, a connection that doesn't answer keeps the models it listed last, so people can keep chatting with them and the fallback provider answers. With Redis, every Studio server keeps them, also after a restart. With the fallback provider off, a connection that is down drops out of the model list, as before.
What people see
- In a chat, a line above the answer: Answered by the fallback provider: the model's own provider is unavailable.
- Programs using the API get the
X-Hrida-LLM-Fallbackresponse header with the model that answered. An answer that isn't streamed also has anllm_fallbackfield. See API endpoints. - AI usage reports name the fallback model for those answers, so its prices apply.
Privacy
Prompts, files and tool results in those calls are sent to the fallback provider whenever it answers. Choose a provider your organisation has approved for that data, and turn off Keep answers at the provider if it must keep nothing.
Each switch is recorded in Admin → Trust → Security as Answered by the fallback provider (low severity): the provider that was down, why, and the model that answered. It's recorded at most once every 10 minutes per provider, so an outage doesn't flood the list.
Limits
- One fallback provider per Studio, and it must be OpenAI or OpenAI-compatible.
- A machine that is switched off may not refuse connections: each answer then waits for the connection timeout before the fallback provider answers. After several such failures, Studio skips that provider for about a minute, and answers go straight to the fallback provider.
- Workflows can also have their own fallback per catalog, used first: see Agent Catalogs.