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 143143
144144<ModeWatcher />
145145
146- <Toaster richColors />
146+ <Toaster position = " top-center " richColors />
147147
148148<MaximumContextAlertDialog />
149149
You can’t perform that action at this time.
0 commit comments