mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 12:01:40 +00:00
test: check OpenAI thinking option values
This commit is contained in:
parent
fceea8caed
commit
df99502a2a
1 changed files with 2 additions and 10 deletions
|
|
@ -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]);
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue