Repository navigation
Commit 8dc5196
committed
fix(openai): block Extra Body temperature on o-series Responses requests
The Responses request guard leaves requestBody.temperature absent for
o1/o3/o4 models, so an openAiExtraBody temperature survived the final
spread and reached models that reject the parameter outright. The Chat
Completions o-series path owns temperature: undefined and suppresses
that collision. Mirror it by explicitly deleting the merged temperature
for o-series models, and cover the combination in the request-builder
spec.1 parent fbf1f23 commit 8dc5196
2 files changed
Lines changed: 24 additions & 1 deletion
File tree
- src/api/providers/utils
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
196 | 212 | | |
197 | 213 | | |
198 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
126 | 133 | | |
127 | 134 | | |
128 | 135 | | |
| |||
0 commit comments