test: check OpenAI thinking option values · openclaw/openclaw@df99502
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -53,11 +53,7 @@ describe("OpenAI thinking contract", () => {
|
53 | 53 | |
54 | 54 | await agent.prompt("hello"); |
55 | 55 | |
56 | | -expect(capturedOptions).toStrictEqual([ |
57 | | -expect.objectContaining({ |
58 | | -reasoning: expectedReasoning, |
59 | | -}), |
60 | | -]); |
| 56 | +expect(capturedOptions.map(({ reasoning }) => reasoning)).toStrictEqual([expectedReasoning]); |
61 | 57 | }, |
62 | 58 | ); |
63 | 59 | |
@@ -75,11 +71,7 @@ describe("OpenAI thinking contract", () => {
|
75 | 71 | |
76 | 72 | await agent.prompt("hello"); |
77 | 73 | |
78 | | -expect(capturedOptions).toStrictEqual([ |
79 | | -expect.not.objectContaining({ |
80 | | -reasoning: expect.anything(), |
81 | | -}), |
82 | | -]); |
| 74 | +expect(capturedOptions.map(({ reasoning }) => reasoning)).toStrictEqual([undefined]); |
83 | 75 | }, |
84 | 76 | ); |
85 | 77 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。