fix(deepseek): use consistent messageIndex 0 for non-tool-call reasoning replay

This commit is contained in:
kang-heewon
2026-05-14 06:56:51 +09:00
committed by diegosouzapw
parent 72dd7c9b49
commit 4726dea901

View File

@@ -279,7 +279,7 @@ export function translateRequest(
const cacheKey = hasToolCalls
? msg.tool_calls[0]?.id
: getAssistantMessageCacheKey(result, messageIndex);
: getAssistantMessageCacheKey(result, 0);
if (cacheKey) {
const cached = lookupReasoning(cacheKey);
if (cached) {