Commit 4dbf49a
committed
fix(test): scope proxy-routed-no-reasoning test to a non-compat baseUrl (#70904)
The existing test asserted "does not add reasoning for non-reasoning models
without existing reasoning payload" but the fixture used
{ api: "openai-responses", provider: "openai", id: "gpt-5.2" } with no
baseUrl — resolveOpenAIRequestCapabilities treats that as the default
endpoint class, which has supportsOpenAIReasoningCompatPayload === true.
The test was passing only because the pre-fix wrapper silently skipped
undefined payload.reasoning.
After the #70904 fix, the new !existingReasoning branch correctly injects
{ effort: "medium" } for that compat-capable route, so the assertion
breaks.
Rename the test to reflect what it should actually cover (proxy routes
that fail the compat gate) and add baseUrl: "https://proxy.example.com/v1"
to force shouldApplyOpenAIReasoningCompatibility === false. With that, the
wrapper returns early and payload.reasoning stays undefined, as intended.
Diagnosis + suggested fix from the #70904 reporter (@douglferreira977)
and Greptile.1 parent 23ed33c commit 4dbf49a
1 file changed
Lines changed: 15 additions & 2 deletions
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| |||
0 commit comments