|
@@ -1,6 +1,7 @@
|
|
|
<script lang="ts">
|
|
|
import { onMount, getContext, tick } from 'svelte';
|
|
|
import { models, tools, functions, knowledge as knowledgeCollections, user } from '$lib/stores';
|
|
|
+ import { WEBUI_BASE_URL } from '$lib/constants';
|
|
|
|
|
|
import AdvancedParams from '$lib/components/chat/Settings/Advanced/AdvancedParams.svelte';
|
|
|
import Tags from '$lib/components/common/Tags.svelte';
|
|
@@ -64,7 +65,7 @@
|
|
|
base_model_id: null,
|
|
|
name: '',
|
|
|
meta: {
|
|
|
- profile_image_url: '/static/favicon.png',
|
|
|
+ profile_image_url: `${WEBUI_BASE_URL}/static/favicon.png`,
|
|
|
description: '',
|
|
|
suggestion_prompts: null,
|
|
|
tags: []
|
|
@@ -379,7 +380,7 @@
|
|
|
<div class="self-center">
|
|
|
<button
|
|
|
class="rounded-xl flex shrink-0 items-center {info.meta.profile_image_url !==
|
|
|
- '/static/favicon.png'
|
|
|
+ `${WEBUI_BASE_URL}/static/favicon.png`
|
|
|
? 'bg-transparent'
|
|
|
: 'bg-white'} shadow-xl group relative"
|
|
|
type="button"
|
|
@@ -395,7 +396,7 @@
|
|
|
/>
|
|
|
{:else}
|
|
|
<img
|
|
|
- src="/static/favicon.png"
|
|
|
+ src="{WEBUI_BASE_URL}/static/favicon.png"
|
|
|
alt="model profile"
|
|
|
class=" rounded-xl size-72 md:size-60 object-cover shrink-0"
|
|
|
/>
|
|
@@ -431,7 +432,7 @@
|
|
|
<button
|
|
|
class="px-2 py-1 text-gray-500 rounded-lg text-xs"
|
|
|
on:click={() => {
|
|
|
- info.meta.profile_image_url = '/static/favicon.png';
|
|
|
+ info.meta.profile_image_url = `${WEBUI_BASE_URL}/static/favicon.png`;
|
|
|
}}
|
|
|
type="button"
|
|
|
>
|