Providers
AiLoom supports multiple AI providers through the Vercel AI SDK. Provider traffic goes
through a single internal Llm service, so bots can switch providers without changing the
rest of the stack.
| Provider | Chat | Embeddings | Guide |
|---|---|---|---|
| OpenAI | ✓ | ✓ | OpenAI |
| Anthropic | ✓ | Anthropic | |
| Google Gemini | ✓ | ✓ | Gemini |
| Groq | ✓ | Groq | |
| Mistral | ✓ | ✓ | Mistral |
| Ollama | ✓ | ✓ | Ollama |
| OpenAI-compatible | ✓ | ✓ | Compatible endpoints |
| Built-in local | ✓ | Local embeddings |
Credentials
Section titled “Credentials”Credentials live per workspace and can be shared by bots. API keys are encrypted at rest
with ENCRYPTION_KEYS and never shown again after saving. The admin can test a credential
before a bot uses it; failed tests return a normalized error code without the raw provider
body.
Each bot has a separate chat credential/model and embedding credential/model. That lets you run Claude for chat with local embeddings, or OpenAI chat with a self-hosted embedder.
Fallback chat model
Section titled “Fallback chat model”In Bots → Models, an admin can choose one fallback chat credential and model. AiLoom tries it once only when the primary provider fails before sending the first answer text. Eligible failures are rate limits, exhausted quota, timeouts, connection failures, provider errors, unavailable local models, authentication failures, and missing models. It does not retry policy blocks, visitor cancellations, or failures after text has started streaming.
The fallback receives the same prompt, temperature, and output limit. Traces name the model that answered and preserve the primary model and failure code. Usage and cost are attributed to the answering model. A credential cannot be deleted while a live bot uses it as either its primary or fallback chat credential.