Switch providers on one client
Both OpenAI and Anthropic need to be configured on the project (AI Studio → Providers).
await notifier.connect();
const cheap = await notifier.sendAI({
senderId: USER_ID,
provider: "open_ai",
model: "gpt-4o-mini",
message: { text: "Classify: billing or tech?" },
saveHistory: false,
});
const nicer = await notifier.sendAI({
senderId: USER_ID,
provider: "anthropic",
model: "claude-haiku-4-5-20251001",
message: { text: "Turn that classification into one polite sentence." },
saveHistory: false,
});Nothing special about reconnecting — one DNotifier instance can hit different providers on different calls.
Provider pages: OpenAI · Anthropic
Next: Agent defaults · All tutorials
Last updated