Multi-model providers

Most teams don't want to hardcode OpenAI forever. You might use Claude for long writing, Gemini for cheap classification, Bedrock in AWS accounts, or Ollama on a laptop.
In DNotifier the split is simple:
Portal β wire up how DNotifier talks to each provider (your API key, a cloud account, an Ollama URL, or DNotifier-billed usage when that's on your plan).
SDK β pick
provider+modelonsendAI(or bake defaults into an agent).
Don't put provider secrets in your repo. The SDK never needs them; it only names which portal connection and which model id to use.
Keys vs DNotifier subscription
Two common setups:
Your key β you already have an OpenAI / Anthropic / etc. account. Paste the key (and endpoint bits if needed) under Projects β AI Studio β Providers in app.dnotifier.com.
DNotifier subscription β for providers that support it, turn on usage through your DNotifier plan so you aren't managing that upstream key yourself.
Not every provider offers both options on every plan. Set up the connection first, then call the SDK.
Provider strings
These are the provider values the SDK expects. Model ids are whatever that connection exposes (gpt-4o, a Claude snapshot id, a Bedrock id, an Ollama tag, β¦).
Provider
provider
Docs
Spell the string exactly like the table. Typos fail at runtime.
Model names for each provider are listed under LLM providers.
Calling it from code
Skip provider / model and you get the project default from auth (current_model). Pass them when you want a specific stack.
If an agent always uses the same stack, set it once:
A later ctx.sendAI({ provider, model }) still wins over the agent defaults.
Rough priority: this call β agent β project default.
Getting unstuck
App exists in the portal; AI is on for the plan.
Provider connection saved under Projects β AI Studio β Providers.
Model id you pass actually exists for that connection.
connect()succeeded andaiEnabledis true.Then hit
sendAIwith the rightprovider/model.
Step-by-step walks: Tutorials.
Also useful: Send a prompt, defineAgent, observability (steps can show which model ran).
Last updated