mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
fix(deepseek): use consistent messageIndex 0 for non-tool-call reasoning replay
This commit is contained in:
committed by
diegosouzapw
parent
72dd7c9b49
commit
4726dea901
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user