@@ -178,12 +178,8 @@ describe("reasoning.ts", () => {
178178 reasoningEffort : effort ,
179179 }
180180 const result = getOpenRouterReasoning ( options )
181- // "minimal" should return undefined for OpenRouter
182- if ( effort === "minimal" ) {
183- expect ( result ) . toBeUndefined ( )
184- } else {
185- expect ( result ) . toEqual ( { effort } )
186- }
181+ // All effort values including "minimal" should be passed through
182+ expect ( result ) . toEqual ( { effort } )
187183 } )
188184 } )
189185
@@ -206,8 +202,8 @@ describe("reasoning.ts", () => {
206202
207203 const result = getOpenRouterReasoning ( options )
208204
209- // "minimal" should return undefined for OpenRouter
210- expect ( result ) . toBeUndefined ( )
205+ // "minimal" should be passed through to OpenRouter
206+ expect ( result ) . toEqual ( { effort : "minimal" } )
211207 } )
212208
213209 it ( "should handle minimal reasoning effort from settings" , ( ) => {
@@ -229,8 +225,8 @@ describe("reasoning.ts", () => {
229225
230226 const result = getOpenRouterReasoning ( options )
231227
232- // "minimal" should return undefined for OpenRouter
233- expect ( result ) . toBeUndefined ( )
228+ // "minimal" should be passed through to OpenRouter
229+ expect ( result ) . toEqual ( { effort : "minimal" } )
234230 } )
235231
236232 it ( "should handle zero reasoningBudget" , ( ) => {
0 commit comments