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
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix: correct LongCat API base URL path
Ivan58df1c06ee72
diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.tsindex a8f5b532fc..3629356d7d 100644--- a/open-sse/config/providerRegistry.ts+++ b/open-sse/config/providerRegistry.ts@@ -1275,10 +1275,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {alias: "lc",format: "openai",executor: "default",- // (#536) Correct OpenAI-compatible base URL — was longcat.chat/api/v1/chat/completions- // which is the chat endpoint directly, not the base. Key validation and routing must- // use https://api.longcat.chat/openai which resolves /v1/models and /v1/chat/completions- baseUrl: "https://api.longcat.chat/openai",+ baseUrl: "https://api.longcat.chat/openai/v1/chat/completions",authType: "apikey",authHeader: "Authorization",authPrefix: "Bearer",diff --git a/src/lib/providers/validation.ts b/src/lib/providers/validation.tsindex a0a1b3218e..1d209dcdf6 100644--- a/src/lib/providers/validation.ts+++ b/src/lib/providers/validation.ts@@ -655,7 +655,7 @@ export async function validateProviderApiKey({ provider, apiKey, providerSpecifi// LongCat AI — does not expose /v1/models; validate via chat completions directly (#592)longcat: async ({ apiKey }: any) => {try {- const res = await fetch("https://longcat.chat/api/v1/chat/completions", {+ const res = await fetch("https://api.longcat.chat/openai/v1/chat/completions", {method: "POST",headers: buildBearerHeaders(apiKey),body: JSON.stringify({