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

fix(types): add explicit cast to silence TS7053 on FREE_PROVIDERS string index

diegosouzapw62f609755a28
diff --git a/src/sse/services/auth.ts b/src/sse/services/auth.ts
index 2a42030229..358acd45ba 100644
--- a/src/sse/services/auth.ts
+++ b/src/sse/services/auth.ts
@@ -794,7 +794,7 @@ export async function getProviderCredentials(
// noAuth free providers (e.g. opencode) need no DB connection — return synthetic credentials
// so the executor receives a valid credentials object without auth headers being added.
const resolvedId = resolveProviderId(provider);
- if (FREE_PROVIDERS[resolvedId]?.noAuth) {
+ if ((FREE_PROVIDERS as Record<string, { noAuth?: boolean } | undefined>)[resolvedId]?.noAuth) {
return {
apiKey: null,
accessToken: null,