@@ -61,7 +61,7 @@ fn read_line<H: Helper, I: History>(editor: &mut Editor<H, I>) -> String {
6161
6262 Err ( e) => {
6363 editor. save_history ( & history_file_path ( ) ) . unwrap ( ) ;
64- eprintln ! ( "Error reading input: {:?}" , e ) ;
64+ eprintln ! ( "Error reading input: {e :?}" ) ;
6565 std:: process:: exit ( 1 ) ;
6666 }
6767 Ok ( prompt) => {
@@ -84,8 +84,9 @@ pub async fn interactive_mode(
8484 ModelCategory :: Vision { .. } => {
8585 vision_interactive_mode ( mistralrs, do_search, enable_thinking) . await
8686 }
87- ModelCategory :: Audio => audio_interactive_mode ( mistralrs, do_search, enable_thinking) . await ,
8887 ModelCategory :: Diffusion => diffusion_interactive_mode ( mistralrs, do_search) . await ,
88+ ModelCategory :: Audio => audio_interactive_mode ( mistralrs, do_search, enable_thinking) . await ,
89+ ModelCategory :: Speech => speech_interactive_mode ( mistralrs, do_search) . await ,
8990 }
9091}
9192
@@ -258,7 +259,7 @@ async fn text_interactive_mode(
258259 } = & chunk. choices [ 0 ]
259260 {
260261 assistant_output. push_str ( content) ;
261- print ! ( "{}" , content ) ;
262+ print ! ( "{content}" ) ;
262263 io:: stdout ( ) . flush ( ) . unwrap ( ) ;
263264 if finish_reason. is_some ( ) {
264265 if matches ! ( finish_reason. as_ref( ) . unwrap( ) . as_str( ) , "length" ) {
@@ -499,7 +500,7 @@ async fn vision_interactive_mode(
499500 } = & chunk. choices [ 0 ]
500501 {
501502 assistant_output. push_str ( content) ;
502- print ! ( "{}" , content ) ;
503+ print ! ( "{content}" ) ;
503504 io:: stdout ( ) . flush ( ) . unwrap ( ) ;
504505 if finish_reason. is_some ( ) {
505506 if matches ! ( finish_reason. as_ref( ) . unwrap( ) . as_str( ) , "length" ) {
@@ -559,7 +560,11 @@ async fn audio_interactive_mode(
559560 _do_search : bool ,
560561 _enable_thinking : Option < bool > ,
561562) {
562- unimplemented ! ( "Using audio models interactively isn't supported yet" )
563+ unimplemented ! ( "Using audio models isn't supported yet" )
564+ }
565+
566+ async fn speech_interactive_mode ( _mistralrs : Arc < MistralRs > , _do_search : bool ) {
567+ unimplemented ! ( "Using speech models isn't supported yet" )
563568}
564569
565570async fn diffusion_interactive_mode ( mistralrs : Arc < MistralRs > , do_search : bool ) {
0 commit comments