fix(core): preserve model request semantics (#30990)

This commit is contained in:
Kit Langton
2026-06-05 14:23:31 -04:00
committed by GitHub
parent ca9bf7abf9
commit 0bdd9aa494
17 changed files with 525 additions and 48 deletions
+4
View File
@@ -219,12 +219,16 @@ describe("CatalogV2", () => {
model.request.headers.shared = "model"
model.request.body.model = true
model.request.body.request = true
const options = (model.request.options ??= {})
options.shared = "model"
options.model = true
})
})
const model = yield* catalog.model.get(providerID, modelID)
expect(model.request.headers).toEqual({ provider: "provider", shared: "model", model: "model" })
expect(model.request.body).toEqual({ provider: true, model: true, request: true })
expect(model.request.options).toEqual({ shared: "model", model: true })
}),
)