@@ -613,9 +613,7 @@ function googleThinkingBudgetMax(apiId: string) {
613613
614614// SAP's Zod schema drops unknown top-level keys; reasoning controls survive
615615// only via `modelParams` (catchall), forwarded verbatim by the SAP SDKs.
616- function wrapInSapModelParams (
617- variants : Record < string , Record < string , any > > ,
618- ) : Record < string , Record < string , any > > {
616+ function wrapInSapModelParams ( variants : Record < string , Record < string , any > > ) : Record < string , Record < string , any > > {
619617 return Object . fromEntries ( Object . entries ( variants ) . map ( ( [ k , v ] ) => [ k , { modelParams : v } ] ) )
620618}
621619
@@ -995,14 +993,10 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
995993 }
996994 if ( id . includes ( "gpt" ) || / \b o [ 1 - 9 ] / . test ( id ) ) {
997995 const efforts = openaiReasoningEfforts ( id , model . release_date )
998- return wrapInSapModelParams (
999- Object . fromEntries ( efforts . map ( ( effort ) => [ effort , { reasoning_effort : effort } ] ) ) ,
1000- )
996+ return wrapInSapModelParams ( Object . fromEntries ( efforts . map ( ( effort ) => [ effort , { reasoning_effort : effort } ] ) ) )
1001997 }
1002998 return wrapInSapModelParams (
1003- Object . fromEntries (
1004- [ "low" , "medium" , "high" ] . map ( ( effort ) => [ effort , { reasoning_effort : effort } ] ) ,
1005- ) ,
999+ Object . fromEntries ( [ "low" , "medium" , "high" ] . map ( ( effort ) => [ effort , { reasoning_effort : effort } ] ) ) ,
10061000 )
10071001 }
10081002 }
0 commit comments