fix: preserve upstream model errors and native request parameters

This commit is contained in:
Agent Workbench Dev
2026-11-01 22:05:08 +08:00
parent 02cefd0498
commit 97c8dde70d
35 changed files with 816 additions and 75 deletions
+1
View File
@@ -17,6 +17,7 @@ export function modelSnapshot(config) {
configRevision: config.configRevision ?? 1,
...modelWaitSettings(config),
...(config.protocol ? { protocol: config.protocol, streaming: config.streaming === true } : {}),
...(config.nativeParameters ? { nativeParameters: structuredClone(config.nativeParameters), outputTokenField: config.outputTokenField } : {}),
...(config.modelRouting ? { routing: structuredClone(config.modelRouting) } : {}),
};
}