mirror of
https://github.com/ranxianglei/billion-context.git
synced 2026-11-23 01:58:16 +08:00
fix(compress): remove 'Do not retry' directive from failure result
The proxy-tool result must report the failure FACT only, not instruct the model. 'Do not retry the same range.' was a directive the model followed poorly (retried slightly-different ranges, looping). Per the principle that failure is the tool output and the model decides its own next action, the result now states only what failed.
This commit is contained in:
+2
-2
@@ -256,7 +256,7 @@ export function applyRanges(ranges: ReturnType<typeof parseCompressInput>, ctx:
|
||||
if (r.blocksCreated === 0) {
|
||||
const errs = r.errors.join("; ") || "no blocks created";
|
||||
ctx.log(`[acp-proxy: compress FAILED ${detail} → 0 blocks. ${errs}]`);
|
||||
return `[Compression FAILED: ${errs} Do not retry the same range.]`;
|
||||
return `[Compression FAILED: ${errs}]`;
|
||||
}
|
||||
|
||||
const warn = r.warnings.length > 0 ? ` ${r.warnings.join("; ")}` : "";
|
||||
@@ -265,7 +265,7 @@ export function applyRanges(ranges: ReturnType<typeof parseCompressInput>, ctx:
|
||||
return msg;
|
||||
} catch (err) {
|
||||
ctx.log(`[acp-proxy: compress failed: ${String(err)}]`);
|
||||
return `[Compression FAILED: ${String(err)} Do not retry the same range.]`;
|
||||
return `[Compression FAILED: ${String(err)}]`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user