@@ -958,22 +958,27 @@ mod tests {
958958 }
959959
960960 #[ test]
961- fn deepseek_v4_reasoning_effort_enables_thinking_and_maps_xhigh_to_max ( ) {
962- let mut p = provider ( "deepseek-v4-pro" , "deepseek" , "https://api.deepseek.com" )
963- . with_capabilities ( OpenAiProviderCapabilities {
964- reasoning_effort_policy : ReasoningEffortPolicy :: DeepSeek ,
965- ..OpenAiProviderCapabilities :: DEFAULT
961+ fn deepseek_v4_reasoning_effort_enables_thinking_and_maps_top_levels_to_max ( ) {
962+ for effort in [
963+ moltis_agents:: model:: ReasoningEffort :: ExtraHigh ,
964+ moltis_agents:: model:: ReasoningEffort :: Max ,
965+ ] {
966+ let mut p = provider ( "deepseek-v4-pro" , "deepseek" , "https://api.deepseek.com" )
967+ . with_capabilities ( OpenAiProviderCapabilities {
968+ reasoning_effort_policy : ReasoningEffortPolicy :: DeepSeek ,
969+ ..OpenAiProviderCapabilities :: DEFAULT
970+ } ) ;
971+ p. reasoning_effort = Some ( effort) ;
972+ let mut body = serde_json:: json!( {
973+ "model" : "deepseek-v4-pro" ,
974+ "messages" : [ { "role" : "user" , "content" : "hello" } ] ,
966975 } ) ;
967- p. reasoning_effort = Some ( moltis_agents:: model:: ReasoningEffort :: ExtraHigh ) ;
968- let mut body = serde_json:: json!( {
969- "model" : "deepseek-v4-pro" ,
970- "messages" : [ { "role" : "user" , "content" : "hello" } ] ,
971- } ) ;
972976
973- p. apply_reasoning_effort_chat ( & mut body) ;
977+ p. apply_reasoning_effort_chat ( & mut body) ;
974978
975- assert_eq ! ( body[ "reasoning_effort" ] , "max" ) ;
976- assert_eq ! ( body[ "thinking" ] , serde_json:: json!( { "type" : "enabled" } ) ) ;
979+ assert_eq ! ( body[ "reasoning_effort" ] , "max" ) ;
980+ assert_eq ! ( body[ "thinking" ] , serde_json:: json!( { "type" : "enabled" } ) ) ;
981+ }
977982 }
978983
979984 #[ test]
@@ -1002,6 +1007,7 @@ mod tests {
10021007 moltis_agents:: model:: ReasoningEffort :: Medium ,
10031008 moltis_agents:: model:: ReasoningEffort :: High ,
10041009 moltis_agents:: model:: ReasoningEffort :: ExtraHigh ,
1010+ moltis_agents:: model:: ReasoningEffort :: Max ,
10051011 ] {
10061012 let mut p = provider ( "kimi-k3" , "moonshot" , "https://api.moonshot.ai/v1" )
10071013 . with_capabilities ( OpenAiProviderCapabilities {
0 commit comments