File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 234
234
class =" mt-2 flex justify-between self-stretch px-1 text-xs text-gray-400/90 max-md:mb-2 max-sm:gap-2"
235
235
>
236
236
<p >
237
+ Model:
237
238
{#if ! assistant }
238
- Model: <a
239
+ <a
239
240
href ={currentModel .modelUrl || " https://huggingface.co/" + currentModel .name }
240
241
target =" _blank"
241
242
rel =" noreferrer"
242
243
class ="hover:underline" >{currentModel .displayName }</a
243
- > <span class ="max-sm:hidden" >·</span >{/if }<br class =" sm:hidden" /> Generated content may
244
+ >{:else }
245
+ {@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
251
+ >{/if } <span class =" max-sm:hidden" >·</span ><br class =" sm:hidden" /> Generated content may
244
252
be inaccurate or false.
245
253
</p >
246
254
{#if messages .length }
You can’t perform that action at this time.
0 commit comments