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 {
82
82
const rawCapabilities = Array . isArray ( details ?. capabilities )
83
83
? [ ...( details ?. capabilities ?? [ ] ) ]
84
84
: [ ] ;
85
+ const displayNameSource =
86
+ details ?. name && details . name . trim ( ) . length > 0 ? details . name : item . id ;
87
+ const displayName = this . toDisplayName ( displayNameSource ) ;
85
88
86
89
return {
87
90
id : item . id ,
88
- name : details ?. name || this . toDisplayName ( item . id ) ,
91
+ name : displayName ,
89
92
model : details ?. model || item . id ,
90
93
description : details ?. description ,
91
94
capabilities : rawCapabilities . filter ( ( value ) : value is string => Boolean ( value ) ) ,
Original file line number Diff line number Diff line change 143
143
144
144
<ModeWatcher />
145
145
146
- <Toaster richColors />
146
+ <Toaster position = " top-center " richColors />
147
147
148
148
<MaximumContextAlertDialog />
149
149
You can’t perform that action at this time.
0 commit comments