forked from open-webui/open-webui
		
	feat: sponsor custom name support
This commit is contained in:
		
							parent
							
								
									fc330a1e8b
								
							
						
					
					
						commit
						62f67bed29
					
				
					 17 changed files with 94 additions and 44 deletions
				
			
		|  | @ -1,4 +1,5 @@ | |||
| <script lang="ts"> | ||||
| 	import { WEBUI_BASE_URL } from '$lib/constants'; | ||||
| 	import { onMount } from 'svelte'; | ||||
| 
 | ||||
| 	export let models = []; | ||||
|  | @ -27,14 +28,16 @@ | |||
| 					> | ||||
| 						{#if model in modelfiles} | ||||
| 							<img | ||||
| 								src={modelfiles[model]?.imageUrl ?? './favicon.png'} | ||||
| 								src={modelfiles[model]?.imageUrl ?? `${WEBUI_BASE_URL}/static/favicon.png`} | ||||
| 								alt="modelfile" | ||||
| 								class=" w-14 rounded-full border-[1px] border-gray-200 dark:border-none" | ||||
| 								draggable="false" | ||||
| 							/> | ||||
| 						{:else} | ||||
| 							<img | ||||
| 								src={models.length === 1 ? '/favicon.png' : '/favicon.png'} | ||||
| 								src={models.length === 1 | ||||
| 									? `${WEBUI_BASE_URL}/static/favicon.png` | ||||
| 									: `${WEBUI_BASE_URL}/static/favicon.png`} | ||||
| 								class=" w-14 rounded-full border-[1px] border-gray-200 dark:border-none" | ||||
| 								alt="logo" | ||||
| 								draggable="false" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek