File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
crates/goose/src/providers/formats Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -1955,34 +1955,4 @@ data: [DONE]
19551955
19561956 Ok ( ( ) )
19571957 }
1958-
1959- #[ test]
1960- fn test_create_request_kimi_thinking_with_explicit_config ( ) -> anyhow:: Result < ( ) > {
1961- let model_config = ModelConfig {
1962- model_name : "kimi-k2-thinking-turbo" . to_string ( ) ,
1963- context_limit : Some ( 131072 ) ,
1964- temperature : Some ( 0.8 ) ,
1965- max_tokens : Some ( 16000 ) ,
1966- toolshim : false ,
1967- toolshim_model : None ,
1968- fast_model : None ,
1969- request_params : None ,
1970- } ;
1971- let request = create_request (
1972- & model_config,
1973- "system" ,
1974- & [ ] ,
1975- & [ ] ,
1976- & ImageFormat :: OpenAi ,
1977- false ,
1978- ) ?;
1979- let obj = request. as_object ( ) . unwrap ( ) ;
1980-
1981- // Should respect explicitly configured temperature
1982- assert_eq ! ( obj. get( "temperature" ) . unwrap( ) , & json!( 0.8 ) ) ;
1983- // Should respect explicitly configured max_tokens
1984- assert_eq ! ( obj. get( "max_tokens" ) . unwrap( ) , & json!( 16000 ) ) ;
1985-
1986- Ok ( ( ) )
1987- }
19881958}
You can’t perform that action at this time.
0 commit comments