@@ -58,15 +58,33 @@ describe("raw /v1/models list reasoning-effort advertisement (Grok Build discove
5858 { value : "high" , label : "High Effort" , default : true } ,
5959 { value : "max" , label : "Max Effort" } ,
6060 ] ) ;
61- // Native rows advertise the upstream ladder and preserve the pinned upstream default
62- // (gpt-5.6-sol => low), matching the Codex catalog path.
63- const native = body . data . find ( m => m . id === "gpt-5.6-sol" ) ;
64- expect ( native ) . toBeDefined ( ) ;
65- expect ( native ! . supports_reasoning_effort ) . toBe ( true ) ;
66- expect ( native ! . reasoning_effort ) . toBe ( "low" ) ;
67- expect ( ( native ! . reasoning_efforts as Array < { value : string } > ) . map ( option => option . value ) ) . toEqual ( [
68- "low" , "medium" , "high" , "xhigh" , "max" , "ultra" ,
69- ] ) ;
61+ // Native rows preserve the pinned per-model ladder and default. Sol and Terra include
62+ // ultra, while Luna intentionally ends at max, matching the canonical Codex catalog.
63+ const nativeExpectations = [
64+ {
65+ id : "gpt-5.6-sol" ,
66+ defaultEffort : "low" ,
67+ efforts : [ "low" , "medium" , "high" , "xhigh" , "max" , "ultra" ] ,
68+ } ,
69+ {
70+ id : "gpt-5.6-terra" ,
71+ defaultEffort : "medium" ,
72+ efforts : [ "low" , "medium" , "high" , "xhigh" , "max" , "ultra" ] ,
73+ } ,
74+ {
75+ id : "gpt-5.6-luna" ,
76+ defaultEffort : "medium" ,
77+ efforts : [ "low" , "medium" , "high" , "xhigh" , "max" ] ,
78+ } ,
79+ ] ;
80+ for ( const expected of nativeExpectations ) {
81+ const native = body . data . find ( m => m . id === expected . id ) ;
82+ expect ( native ) . toBeDefined ( ) ;
83+ expect ( native ! . supports_reasoning_effort ) . toBe ( true ) ;
84+ expect ( native ! . reasoning_effort ) . toBe ( expected . defaultEffort ) ;
85+ expect ( ( native ! . reasoning_efforts as Array < { value : string } > ) . map ( option => option . value ) )
86+ . toEqual ( expected . efforts ) ;
87+ }
7088 } finally {
7189 await server . stop ( true ) ;
7290 }
0 commit comments