test: check OpenAI thinking option values

This commit is contained in:
Shakker
2026-05-11 23:28:08 +01:00
parent fceea8caed
commit df99502a2a

View File

@@ -53,11 +53,7 @@ describe("OpenAI thinking contract", () => {
await agent.prompt("hello");
expect(capturedOptions).toStrictEqual([
expect.objectContaining({
reasoning: expectedReasoning,
}),
]);
expect(capturedOptions.map(({ reasoning }) => reasoning)).toStrictEqual([expectedReasoning]);
},
);
@@ -75,11 +71,7 @@ describe("OpenAI thinking contract", () => {
await agent.prompt("hello");
expect(capturedOptions).toStrictEqual([
expect.not.objectContaining({
reasoning: expect.anything(),
}),
]);
expect(capturedOptions.map(({ reasoning }) => reasoning)).toStrictEqual([undefined]);
},
);