Add Claude Pro/Max, Mistral, Cerebras and OpenRouter connectors

Closes the Anthropic OAuth gap with a native Claude Pro/Max device sign-in
(reusing the OAuth engine) and adds three OpenAI-compatible API-key
providers. Model lists are sourced from the provider registry. A backfill
migration seeds the new providers into existing organizations idempotently.
This commit is contained in:
ZacharyZhang-NY committed 2026-05-29 20:19:01 -04:00
1 parent 49a9f16221
commit 9ce1281054
9 files changed
+213 -20

No files matched your search

@@ -253,9 +253,28 @@ export const providerAdapters: ProviderAdapterRegistry = {
endpoint: "https://api.groq.com/openai/v1/chat/completions",
healthUrl: "https://api.groq.com/openai/v1/models",
}),
mistral: openAiCompatibleAdapter({
providerKey: "mistral",
label: "Mistral",
endpoint: "https://api.mistral.ai/v1/chat/completions",
healthUrl: "https://api.mistral.ai/v1/models",
}),
cerebras: openAiCompatibleAdapter({
providerKey: "cerebras",
label: "Cerebras",
endpoint: "https://api.cerebras.ai/v1/chat/completions",
healthUrl: "https://api.cerebras.ai/v1/models",
}),
openrouter: openAiCompatibleAdapter({
providerKey: "openrouter",
label: "OpenRouter",
endpoint: "https://openrouter.ai/api/v1/chat/completions",
healthUrl: "https://openrouter.ai/api/v1/models",
}),
"github-copilot": browserTokenAdapter("github-copilot", PROVIDER_AUTH_TYPE.OAUTH_PKCE),
"google-antigravity": browserTokenAdapter("google-antigravity", PROVIDER_AUTH_TYPE.OAUTH_PKCE),
"gpt-account": browserTokenAdapter("gpt-account", PROVIDER_AUTH_TYPE.ACCOUNT_SUBSCRIPTION),
"claude-pro": browserTokenAdapter("claude-pro", PROVIDER_AUTH_TYPE.OAUTH_PKCE),
"azure-openai": {
providerKey: "azure-openai",
authType: PROVIDER_AUTH_TYPE.CLOUD,