Browse Source

fix: custom modelfile image placeholder

Timothy J. Baek 1 year ago
parent
commit
2fedd42e12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/Messages/Placeholder.svelte

+ 1 - 1
src/lib/components/chat/Messages/Placeholder.svelte

@@ -27,7 +27,7 @@
 					>
 						{#if model in modelfiles}
 							<img
-								src={modelfiles[model]?.imageUrl}
+								src={modelfiles[model]?.imageUrl ?? '/ollama-dark.png'}
 								alt="modelfile"
 								class=" w-20 mb-2 rounded-full {models.length > 1
 									? ' border-[5px] border-white dark:border-gray-800'