@@ -94,7 +94,7 @@ <h2 class="text-lg font-semibold">Chat Settings</h2>
94
94
<!-- Model info -->
95
95
< div class ="space-y-2 ">
96
96
< div class ="flex items-center ">
97
- < img src ="{{$galleryConfig.Icon}} " class ="rounded-lg w-8 h-8 mr-2 ">
97
+ {{ if $galleryConfig.Icon }} < img src ="{{$galleryConfig.Icon}} " class ="rounded-lg w-8 h-8 mr-2 "> {{end}}
98
98
< h3 class ="text-md font-medium "> {{ $model }}</ h3 >
99
99
</ div >
100
100
< button data-twe-ripple-init data-twe-ripple-color ="light " class ="w-full text-left flex items-center px-3 py-2 text-xs rounded text-white bg-gray-700 hover:bg-gray-600 transition-colors " data-modal-target ="model-info-modal " data-modal-toggle ="model-info-modal ">
@@ -229,7 +229,7 @@ <h3 class="text-md font-medium">{{ $model }}</h3>
229
229
< i class ="fa-solid fa-comments mr-2 "> </ i >
230
230
{{ if $model }}
231
231
{{ $galleryConfig:= index $allGalleryConfigs $model}}
232
- < img src ="{{$galleryConfig.Icon}} " class ="rounded-lg w-8 h-8 mr-2 ">
232
+ {{ if $galleryConfig.Icon }} < img src ="{{$galleryConfig.Icon}} " class ="rounded-lg w-8 h-8 mr-2 "> {{end}}
233
233
{{ end }}
234
234
< h1 class ="text-lg font-semibold ">
235
235
Chat {{ if .Model }} with {{.Model}} {{ end }}
@@ -262,7 +262,7 @@ <h1 class="text-lg font-semibold">
262
262
</ template >
263
263
< template x-if ="message.role != 'user' ">
264
264
< div class ="flex items-center space-x-2 ">
265
- < img src ="{{$galleryConfig.Icon}} " class ="rounded-lg mt-2 max-w-8 max-h-8 ">
265
+ {{ if $galleryConfig.Icon }} < img src ="{{$galleryConfig.Icon}} " class ="rounded-lg mt-2 max-w-8 max-h-8 "> {{end}}
266
266
< div class ="flex flex-col flex-1 ">
267
267
< span class ="text-xs font-semibold text-gray-400 "> {{if .Model}}{{.Model}}{{else}}Assistant{{end}}</ span >
268
268
< div class ="flex-1 text-white flex items-center space-x-2 ">
@@ -355,7 +355,7 @@ <h3 class="text-xl font-semibold text-gray-900 dark:text-white">{{ $model }}</h3
355
355
<!-- Body -->
356
356
< div class ="p-4 md:p-5 space-y-4 ">
357
357
< div class ="flex justify-center items-center ">
358
- < img class ="lazy rounded-t-lg max-h-48 max-w-96 object-cover mt-3 entered loaded " src ="{{$galleryConfig.Icon}} " loading ="lazy "/>
358
+ {{ if $galleryConfig.Icon }} < img class ="lazy rounded-t-lg max-h-48 max-w-96 object-cover mt-3 entered loaded " src ="{{$galleryConfig.Icon}} " loading ="lazy "/> {{end}}
359
359
</ div >
360
360
< p class ="text-base leading-relaxed text-gray-500 dark:text-gray-400 "> {{ $galleryConfig.Description }}</ p >
361
361
< hr >
0 commit comments