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(types): Zod 4 z.record 2-arg form + header type cast in openapi/try
diegosouzapw7142688a770f
diff --git a/src/app/api/openapi/try/route.ts b/src/app/api/openapi/try/route.tsindex 091aa26a6c..1300aa6daa 100644--- a/src/app/api/openapi/try/route.ts+++ b/src/app/api/openapi/try/route.ts@@ -10,7 +10,7 @@ import { validateBody, isValidationFailure } from "@/shared/validation/helpers";const tryRequestSchema = z.object({method: z.enum(["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]).optional().default("GET"),path: z.string().min(1, "Path is required").startsWith("/", "Path must start with /"),- headers: z.record(z.string()).optional().default({}),+ headers: z.record(z.string(), z.string()).optional().default({}),body: z.any().optional(),});@@ -35,7 +35,7 @@ export async function POST(request: NextRequest) {// Forward cookies/auth from the original requestconst forwardHeaders: Record<string, string> = {- ...headers,+ ...(headers as Record<string, string>),};// Forward auth from the dashboard session