fix: align scoped routing proof with current config

This commit is contained in:
Dallin Romney
2026-08-20 19:44:21 -07:00
parent 5a4ea206c7
commit 6a35e381e4
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -162,7 +162,8 @@ function resolveFusionExtraBody(
];
let effective: Record<string, unknown> | undefined;
for (const source of sources) {
const raw = source && Object.hasOwn(source, "extra_body") ? source.extra_body : source?.extraBody;
const raw =
source && Object.hasOwn(source, "extra_body") ? source.extra_body : source?.extraBody;
const candidate = readRecord(raw);
if (candidate) {
effective = candidate;
@@ -73,6 +73,7 @@ function resolveOpenRouterProviderConfigParams(
for (const [, config] of prioritizedProviders) {
const params = readRecord(config.params);
if (params) {
// SAFETY: both inputs are sanitized plain records, so the recursive merge remains a record.
matchedParams = mergeDeep(matchedParams ?? {}, params) as Record<string, unknown>;
}
}
+3 -4
View File
@@ -76,14 +76,13 @@ describe("Responses server compaction host/transport parity", () => {
defaults: {
params: { responsesCompactThreshold: 120_000 },
},
entries: [
{
id: "audit",
entries: {
audit: {
models: {
[modelRef]: { params: { responsesCompactThreshold: 175_000 } },
},
},
],
},
},
};