File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import OpenWebSearchResults from " ../OpenWebSearchResults.svelte" ;
21
21
import type { WebSearchUpdate } from " $lib/types/MessageUpdate" ;
22
+ import { base } from " $app/paths" ;
22
23
23
24
function sanitizeMd(md : string ) {
24
25
let ret = md
139
140
on:click ={() => (isTapped = ! isTapped )}
140
141
on:keypress ={() => (isTapped = ! isTapped )}
141
142
>
142
- <img
143
- alt =" "
144
- src =" https://huggingface.co/avatars/2edb18bd0206c16b433841a47f53fa8e.svg"
145
- class =" mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
146
- />
143
+ {#if $page .data ?.assistant ?.avatar }
144
+ <img
145
+ src =" {base }/settings/assistants/ {$page .data .assistant ._id }/avatar.jpg"
146
+ alt =" Avatar"
147
+ class =" mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
148
+ />
149
+ {:else }
150
+ <img
151
+ alt =" "
152
+ src =" https://huggingface.co/avatars/2edb18bd0206c16b433841a47f53fa8e.svg"
153
+ class =" mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
154
+ />
155
+ {/if }
147
156
<div
148
157
class =" relative min-h-[calc(2rem+theme(spacing[3.5])*2)] min-w-[60px] break-words rounded-2xl border border-gray-100 bg-gradient-to-br from-gray-50 px-5 py-3.5 text-gray-600 prose-pre:my-2 dark:border-gray-800 dark:from-gray-800/40 dark:text-gray-300"
149
158
>
You can’t perform that action at this time.
0 commit comments