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(kiro): strip injected model field from request body (#478)

Prakersh Maheshwari801b4eef4c38
diff --git a/open-sse/executors/kiro.ts b/open-sse/executors/kiro.ts
index a8fe51b365..d80917ec72 100644
--- a/open-sse/executors/kiro.ts
+++ b/open-sse/executors/kiro.ts
@@ -77,10 +77,13 @@ export class KiroExecutor extends BaseExecutor {
}
transformRequest(model: string, body: unknown, stream: boolean, credentials: unknown): unknown {
- void model;
void stream;
void credentials;
- return body;
+ // Kiro uses conversationState.currentMessage.userInputMessage.modelId,
+ // not a top-level "model" field. chatCore injects translatedBody.model
+ // which Kiro API rejects as unknown top-level field.
+ const { model: _model, ...rest } = body as Record<string, unknown>;
+ return rest;
}
/**