File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,12 +187,37 @@ pub async fn run(cli: Cli) {
187187 println ! ( "Kind: Model" ) ;
188188 println ! ( "Spec:" ) ;
189189 if let Some ( spec) = & model. spec {
190- println ! ( " Author: {}" , spec. author. as_deref( ) . unwrap_or( "N/A" ) ) ;
191- println ! ( " Task: {}" , spec. task. as_deref( ) . unwrap_or( "N/A" ) ) ;
192- println ! ( " License: {}" , spec. license. as_ref( ) . map( |s| s. to_uppercase( ) ) . unwrap_or_else( || "N/A" . to_string( ) ) ) ;
193- println ! ( " Model Type: {}" , spec. model_type. as_deref( ) . unwrap_or( "N/A" ) ) ;
194- println ! ( " Parameters: {}" , spec. parameters. map( |p| crate :: utils:: format:: format_parameters( p) ) . unwrap_or_else( || "N/A" . to_string( ) ) ) ;
195- println ! ( " Context Window: {}" , spec. context_window. map( |w| crate :: utils:: format:: format_parameters( w as u64 ) ) . unwrap_or_else( || "N/A" . to_string( ) ) ) ;
190+ println ! (
191+ " Author: {}" ,
192+ spec. author. as_deref( ) . unwrap_or( "N/A" )
193+ ) ;
194+ println ! (
195+ " Task: {}" ,
196+ spec. task. as_deref( ) . unwrap_or( "N/A" )
197+ ) ;
198+ println ! (
199+ " License: {}" ,
200+ spec. license
201+ . as_ref( )
202+ . map( |s| s. to_uppercase( ) )
203+ . unwrap_or_else( || "N/A" . to_string( ) )
204+ ) ;
205+ println ! (
206+ " Model Type: {}" ,
207+ spec. model_type. as_deref( ) . unwrap_or( "N/A" )
208+ ) ;
209+ println ! (
210+ " Parameters: {}" ,
211+ spec. parameters
212+ . map( crate :: utils:: format:: format_parameters)
213+ . unwrap_or_else( || "N/A" . to_string( ) )
214+ ) ;
215+ println ! (
216+ " Context Window: {}" ,
217+ spec. context_window
218+ . map( |w| crate :: utils:: format:: format_parameters( w as u64 ) )
219+ . unwrap_or_else( || "N/A" . to_string( ) )
220+ ) ;
196221 } else {
197222 println ! ( " Author: N/A" ) ;
198223 println ! ( " Task: N/A" ) ;
You can’t perform that action at this time.
0 commit comments