forked from open-webui/open-webui
		
	feat: remove hardcoded names
This commit is contained in:
		
							parent
							
								
									6a4dcac8e9
								
							
						
					
					
						commit
						223f17baf9
					
				
					 9 changed files with 70 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -27,19 +27,19 @@
 | 
			
		|||
					>
 | 
			
		||||
						{#if model in modelfiles}
 | 
			
		||||
							<img
 | 
			
		||||
								src={modelfiles[model]?.imageUrl ?? '/ollama-dark.png'}
 | 
			
		||||
								src={modelfiles[model]?.imageUrl ?? './favicon.png'}
 | 
			
		||||
								alt="modelfile"
 | 
			
		||||
								class=" w-20 mb-2 rounded-full {models.length > 1
 | 
			
		||||
									? ' border-[5px] border-white dark:border-gray-800'
 | 
			
		||||
									? ' border-[5px] border-white dark:border-gray-900'
 | 
			
		||||
									: ''}"
 | 
			
		||||
								draggable="false"
 | 
			
		||||
							/>
 | 
			
		||||
						{:else}
 | 
			
		||||
							<img
 | 
			
		||||
								src={models.length === 1 ? '/ollama.png' : 'ollama-dark.png'}
 | 
			
		||||
								src={models.length === 1 ? '/favicon.png' : '/favicon.png'}
 | 
			
		||||
								class=" w-20 mb-2 {models.length === 1
 | 
			
		||||
									? 'invert-[10%] dark:invert-[100%]'
 | 
			
		||||
									: 'border-[5px] border-white dark:border-gray-800'}  rounded-full"
 | 
			
		||||
									? ''
 | 
			
		||||
									: 'border-[5px] border-white dark:border-gray-900'}  rounded-full"
 | 
			
		||||
								alt="ollama"
 | 
			
		||||
								draggable="false"
 | 
			
		||||
							/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
<script lang="ts">
 | 
			
		||||
	import { getOllamaVersion } from '$lib/apis/ollama';
 | 
			
		||||
	import { WEB_UI_VERSION } from '$lib/constants';
 | 
			
		||||
	import { WEBUI_NAME, WEB_UI_VERSION } from '$lib/constants';
 | 
			
		||||
	import { config } from '$lib/stores';
 | 
			
		||||
	import { onMount } from 'svelte';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -15,7 +15,7 @@
 | 
			
		|||
<div class="flex flex-col h-full justify-between space-y-3 text-sm mb-6">
 | 
			
		||||
	<div class=" space-y-3">
 | 
			
		||||
		<div>
 | 
			
		||||
			<div class=" mb-2.5 text-sm font-medium">Ollama Web UI Version</div>
 | 
			
		||||
			<div class=" mb-2.5 text-sm font-medium">{WEBUI_NAME} Version</div>
 | 
			
		||||
			<div class="flex w-full">
 | 
			
		||||
				<div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
 | 
			
		||||
					{$config && $config.version ? $config.version : WEB_UI_VERSION}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue