@@ -85,14 +85,12 @@ func (e *CodexExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth, re
8585 default :
8686 body , _ = sjson .SetBytes (body , "reasoning.effort" , "medium" )
8787 }
88- } else if util .InArray ([]string {"gpt-5.1" , "gpt-5.1-minimal" , "gpt-5.1- low" , "gpt-5.1-medium" , "gpt-5.1-high" }, req .Model ) {
88+ } else if util .InArray ([]string {"gpt-5.1" , "gpt-5.1-low" , "gpt-5.1-medium" , "gpt-5.1-high" }, req .Model ) {
8989 body , _ = sjson .SetBytes (body , "model" , "gpt-5.1" )
9090 switch req .Model {
91- case "gpt-5.1-minimal" :
92- body , _ = sjson .SetBytes (body , "reasoning.effort" , "minimal" )
9391 case "gpt-5.1-low" :
9492 body , _ = sjson .SetBytes (body , "reasoning.effort" , "low" )
95- case "gpt-5.1-medium" :
93+ case "gpt-5.1-medium" , "gpt-5.1" :
9694 body , _ = sjson .SetBytes (body , "reasoning.effort" , "medium" )
9795 case "gpt-5.1-high" :
9896 body , _ = sjson .SetBytes (body , "reasoning.effort" , "high" )
@@ -239,14 +237,12 @@ func (e *CodexExecutor) ExecuteStream(ctx context.Context, auth *cliproxyauth.Au
239237 case "gpt-5-codex-mini-high" :
240238 body , _ = sjson .SetBytes (body , "reasoning.effort" , "high" )
241239 }
242- } else if util .InArray ([]string {"gpt-5.1" , "gpt-5.1-minimal" , "gpt-5.1- low" , "gpt-5.1-medium" , "gpt-5.1-high" }, req .Model ) {
240+ } else if util .InArray ([]string {"gpt-5.1" , "gpt-5.1-low" , "gpt-5.1-medium" , "gpt-5.1-high" }, req .Model ) {
243241 body , _ = sjson .SetBytes (body , "model" , "gpt-5.1" )
244242 switch req .Model {
245- case "gpt-5.1-minimal" :
246- body , _ = sjson .SetBytes (body , "reasoning.effort" , "minimal" )
247243 case "gpt-5.1-low" :
248244 body , _ = sjson .SetBytes (body , "reasoning.effort" , "low" )
249- case "gpt-5.1-medium" :
245+ case "gpt-5.1-medium" , "gpt-5.1" :
250246 body , _ = sjson .SetBytes (body , "reasoning.effort" , "medium" )
251247 case "gpt-5.1-high" :
252248 body , _ = sjson .SetBytes (body , "reasoning.effort" , "high" )
0 commit comments