mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
fix: align scoped routing proof with current config
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 } },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user