@@ -1407,14 +1407,32 @@ impl ChatSession {
14071407 }
14081408 }
14091409
1410+ // Show model information
1411+ if let Some ( ref model_info) = self . conversation . model_info {
1412+ let ( models, _default_model) = get_available_models ( os) . await ?;
1413+ if let Some ( model_option) = models. iter ( ) . find ( |option| option. model_id == model_info. model_id ) {
1414+ let display_name = model_option. model_name . as_deref ( ) . unwrap_or ( & model_option. model_id ) ;
1415+ execute ! (
1416+ self . stderr,
1417+ style:: Print ( "\n " ) ,
1418+ StyledText :: secondary_fg( ) ,
1419+ style:: Print ( "Model: " ) ,
1420+ StyledText :: reset( ) ,
1421+ style:: Print ( display_name) ,
1422+ StyledText :: secondary_fg( ) ,
1423+ style:: Print ( " (" ) ,
1424+ StyledText :: reset( ) ,
1425+ style:: Print ( & StyledText :: command( "/model" ) ) ,
1426+ StyledText :: secondary_fg( ) ,
1427+ style:: Print ( " to change)\n " ) ,
1428+ StyledText :: reset( ) ,
1429+ ) ?;
1430+ }
1431+ }
1432+
14101433 execute ! (
14111434 self . stderr,
14121435 style:: Print ( "\n " ) ,
1413- style:: Print ( & match is_small_screen {
1414- true => ui_text:: small_screen_popular_shortcuts( ) ,
1415- false => ui_text:: popular_shortcuts( ) ,
1416- } ) ,
1417- style:: Print ( "\n " ) ,
14181436 style:: Print (
14191437 "━"
14201438 . repeat( if is_small_screen { 0 } else { GREETING_BREAK_POINT } )
@@ -1441,20 +1459,6 @@ impl ChatSession {
14411459
14421460 self . stderr . flush ( ) ?;
14431461
1444- if let Some ( ref model_info) = self . conversation . model_info {
1445- let ( models, _default_model) = get_available_models ( os) . await ?;
1446- if let Some ( model_option) = models. iter ( ) . find ( |option| option. model_id == model_info. model_id ) {
1447- let display_name = model_option. model_name . as_deref ( ) . unwrap_or ( & model_option. model_id ) ;
1448- execute ! (
1449- self . stderr,
1450- StyledText :: brand_fg( ) ,
1451- style:: Print ( format!( "🤖 You are chatting with {display_name}\n " ) ) ,
1452- StyledText :: reset( ) ,
1453- style:: Print ( "\n " )
1454- ) ?;
1455- }
1456- }
1457-
14581462 // Initialize capturing if possible
14591463 if ExperimentManager :: is_enabled ( os, ExperimentName :: Checkpoint ) {
14601464 let path = get_shadow_repo_dir ( os, self . conversation . conversation_id ( ) . to_string ( ) ) ?;
0 commit comments