Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4219,7 +4219,7 @@ export async function preflightCompressIfNeeded(
`and preflight compression could not bring it under: ${detail.replace(/\.\s*$/, "")}.` +
imageNote +
shrinkNote +
` The over-window payload was NOT forwarded.`;
` This request's over-window payload was NOT forwarded to the upstream.`;
log("error", `[${session.id}] preflight fail-fast ${status} (retryable=${retryable}): ${message}`);
return { failFast: true, status, message, retryable, respond: !res.writableEnded };
};
Expand Down
2 changes: 1 addition & 1 deletion tests/issue1993-preflight-400.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ test("#1993 systemic hard 400: body surfaced in log+message, bounded halving cas
assert.ok(
j2.error?.message?.includes("rejected by the upstream (HTTP 400)")
&& j2.error?.message?.includes("request too large: 523200 tokens exceeds the 128000 input limit")
&& j2.error?.message?.includes("The over-window payload was NOT forwarded."),
&& j2.error?.message?.includes("This request's over-window payload was NOT forwarded to the upstream."),
`regenerated diagnosis must carry the same rejection core, got: ${j2.error?.message}`,
);
const retrySummaries = calls.slice(callsBeforeRetry).filter((c) => c.summary);
Expand Down
Loading