Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Multi-model providers

DNotifier as an AI orchestration layer between your app and LLM 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 + model on sendAI (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:

  1. 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.

  2. 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

OpenAI

open_ai

Anthropic

anthropic

Google Gemini

google_gemini

Hugging Face

hugging_face

Perplexity

perplexity

Azure AI

azure_ai

AWS Bedrock

aws_bedrock

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

  1. App exists in the portal; AI is on for the plan.

  2. Provider connection saved under Projects β†’ AI Studio β†’ Providers.

  3. Model id you pass actually exists for that connection.

  4. connect() succeeded and aiEnabled is true.

  5. Then hit sendAI with the right provider / model.

Step-by-step walks: Tutorials.

Also useful: Send a prompt, defineAgent, observability (steps can show which model ran).

Last updated