Albert Iribarne commited on
Commit
0ad340e
1 Parent(s): f209301

Leverage model link to modelUrl when informed (#385)

Browse files

* Use modelUrl instead of building it from model name

* Preserve compatibility with optional modelUrl config

Use modelUrl if informed, else use the previous behavior.

src/lib/components/chat/ChatWindow.svelte CHANGED
@@ -124,7 +124,7 @@
124
  <div class="mt-2 flex justify-between self-stretch px-1 text-xs text-gray-400/90 max-sm:gap-2">
125
  <p>
126
  Model: <a
127
- href="https://huggingface.co/{currentModel.name}"
128
  target="_blank"
129
  rel="noreferrer"
130
  class="hover:underline">{currentModel.displayName}</a
 
124
  <div class="mt-2 flex justify-between self-stretch px-1 text-xs text-gray-400/90 max-sm:gap-2">
125
  <p>
126
  Model: <a
127
+ href={currentModel.modelUrl || "https://huggingface.co/" + currentModel.name}
128
  target="_blank"
129
  rel="noreferrer"
130
  class="hover:underline">{currentModel.displayName}</a