File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 23
23
import UploadBtn from " ../UploadBtn.svelte" ;
24
24
import file2base64 from " $lib/utils/file2base64" ;
25
25
import type { Assistant } from " $lib/types/Assistant" ;
26
+ import { base } from " $app/paths" ;
27
+ import id from " date-fns/locale/id" ;
26
28
27
29
export let messages: Message [] = [];
28
30
export let loading = false ;
236
238
<p >
237
239
Model:
238
240
{#if ! assistant }
239
- <a
240
- href ={currentModel .modelUrl || " https://huggingface.co/" + currentModel .name }
241
- target =" _blank"
242
- rel =" noreferrer"
243
- class ="hover:underline" >{currentModel .displayName }</a
241
+ <a href =" {base }/settings/ {currentModel .id }" class =" hover:underline"
242
+ >{currentModel .displayName }</a
244
243
>{:else }
245
244
{@const model = models .find ((m ) => m .id === assistant ?.modelId )}
246
- <a
247
- href ={model ?.modelUrl || " https://huggingface.co/" + model ?.name }
248
- target =" _blank"
249
- rel =" noreferrer"
250
- class ="hover:underline" >{model ?.displayName }</a
245
+ <a href =" {base }/settings/assistants/ {assistant ._id }" class =" hover:underline"
246
+ >{model ?.displayName }</a
251
247
>{/if } <span class =" max-sm:hidden" >·</span ><br class =" sm:hidden" /> Generated content may
252
248
be inaccurate or false.
253
249
</p >
You can’t perform that action at this time.
0 commit comments