Skip to content

Commit f2b61ee

Browse files
committed
test(azure): expect the object root the passthrough now normalizes
The additional_tools normalizer from the previous commit also runs on the Azure passthrough, so a schema written as {} in the fixture ships as {type:"object"}. This test is about namespace lowering in the tool name, not about the schema shape, so the expectation is updated rather than the normalizer narrowed.
1 parent 760b287 commit f2b61ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/azure-adapter.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ describe("Azure OpenAI adapter hardening", () => {
5353
};
5454

5555
expect(body.input[0]?.tools).toEqual([
56-
{ type: "function", name: "image_gen__imagegen", parameters: {} },
56+
// parameters gains an object root on the way out (#745): the passthrough normalizer
57+
// runs on additional_tools too, so a schema declared as {} ships as {type:"object"}.
58+
// What this test is about is the namespace lowering in the name.
59+
{ type: "function", name: "image_gen__imagegen", parameters: { type: "object" } },
5760
]);
5861
});
5962

0 commit comments

Comments
 (0)