fix: pass client headers to executor in chatCore (#1335)

Integrated into release/v3.6.7
This commit is contained in:
Samuel Cedric
2026-04-16 22:51:51 +07:00
committed by GitHub
parent 732a3116ff
commit bf04aa3927

View File

@@ -1563,6 +1563,7 @@ export async function handleChatCore({
log,
extendedContext,
upstreamExtraHeaders: buildUpstreamHeadersForExecute(modelToCall),
clientHeaders: clientRawRequest?.headers ?? null,
});
// Qwen 429 strict quota backoff (wait 1.5s, 3s and retry)
@@ -1763,6 +1764,7 @@ export async function handleChatCore({
log,
extendedContext,
upstreamExtraHeaders: buildUpstreamHeadersForExecute(retryModelId),
clientHeaders: clientRawRequest?.headers ?? null,
});
if (retryResult.response.ok) {