File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,13 @@ class ModelsStore {
8282 const rawCapabilities = Array . isArray ( details ?. capabilities )
8383 ? [ ...( details ?. capabilities ?? [ ] ) ]
8484 : [ ] ;
85+ const displayNameSource =
86+ details ?. name && details . name . trim ( ) . length > 0 ? details . name : item . id ;
87+ const displayName = this . toDisplayName ( displayNameSource ) ;
8588
8689 return {
8790 id : item . id ,
88- name : details ?. name || this . toDisplayName ( item . id ) ,
91+ name : displayName ,
8992 model : details ?. model || item . id ,
9093 description : details ?. description ,
9194 capabilities : rawCapabilities . filter ( ( value ) : value is string => Boolean ( value ) ) ,
Original file line number Diff line number Diff line change 142142
143143<ModeWatcher />
144144
145- <Toaster richColors />
145+ <Toaster position = " top-center " richColors />
146146
147147<MaximumContextAlertDialog />
148148
You can’t perform that action at this time.
0 commit comments