mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: check OpenAI thinking option values
This commit is contained in:
@@ -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]);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user