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

test(deepseek): fix cache key in translator replay tests to message:0

kang-heewonc2bf5c7db57c
diff --git a/tests/unit/translator-helper-branches.test.ts b/tests/unit/translator-helper-branches.test.ts
index 0f2ab57165..b0cfddd0e9 100644
--- a/tests/unit/translator-helper-branches.test.ts
+++ b/tests/unit/translator-helper-branches.test.ts
@@ -492,7 +492,7 @@ test("toolCallHelper normalizes ids, links tool responses and inserts missing to
test("translateRequest replays cached DeepSeek reasoning messages without tool calls", () => {
clearReasoningCacheAll();
cacheReasoningByKey(
- "request:req_reasoning_only:message:1",
+ "request:req_reasoning_only:message:0",
"deepseek",
"deepseek-reasoner",
"cached reasoning only"
@@ -522,7 +522,7 @@ test("translateRequest replays cached DeepSeek reasoning messages without tool c
test("translateRequest does not replay reasoning-only messages for non-DeepSeek models", () => {
clearReasoningCacheAll();
cacheReasoningByKey(
- "request:req_kimi_reasoning_only:message:1",
+ "request:req_kimi_reasoning_only:message:0",
"kimi",
"kimi-k2.5",
"cached kimi reasoning"