Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

671 B
Raw Blame
/**
 * #7993 — sibling provider ids whose no-auth `providerSpecificData`
 * (fingerprints + accountProxies) must also be consulted when hydrating
 * credentials for a provider that shares the same public endpoint.
 *
 * Empty since the keyless OpenCode provider was removed (see
 * docs/reference/REMOVED_PROVIDERS.md): it was the only sibling pair.
 */
const NOAUTH_SIBLING_PROVIDER_IDS: Record<string, string[]> = {};

/** Provider ids to query when hydrating no-auth `providerSpecificData` for `providerId`. */
export function getNoAuthHydrationProviderIds(providerId: string): string[] {
  return [providerId, ...(NOAUTH_SIBLING_PROVIDER_IDS[providerId] || [])];
}