diff --git a/backend/apps/webui/models/models.py b/backend/apps/webui/models/models.py
index 300a805fe4..3b128c7d67 100644
--- a/backend/apps/webui/models/models.py
+++ b/backend/apps/webui/models/models.py
@@ -29,7 +29,7 @@ class ModelParams(BaseModel):
# ModelMeta is a model for the data stored in the meta field of the Model table
class ModelMeta(BaseModel):
- profile_image_url: Optional[str] = "/favicon.png"
+ profile_image_url: Optional[str] = "/static/favicon.png"
description: Optional[str] = None
"""
diff --git a/backend/main.py b/backend/main.py
index 7355a21594..6ded8e1d20 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -2229,7 +2229,7 @@ async def get_opensearch_xml():
{WEBUI_NAME}
Search {WEBUI_NAME}
UTF-8
- {WEBUI_URL}/favicon.png
+ {WEBUI_URL}/static/favicon.png
{WEBUI_URL}
diff --git a/backend/test/apps/webui/routers/test_models.py b/backend/test/apps/webui/routers/test_models.py
index 34d3e30bd1..410c4516a2 100644
--- a/backend/test/apps/webui/routers/test_models.py
+++ b/backend/test/apps/webui/routers/test_models.py
@@ -26,7 +26,7 @@ def test_models(self):
"base_model_id": "base-model-id",
"name": "Hello World",
"meta": {
- "profile_image_url": "/favicon.png",
+ "profile_image_url": "/static/favicon.png",
"description": "description",
"capabilities": None,
"model_config": {},
diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte
index bca31f6101..e28b4b5bd0 100644
--- a/src/lib/components/chat/MessageInput/CallOverlay.svelte
+++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte
@@ -662,10 +662,11 @@
: rmsLevel * 100 > 1
? 'size-14'
: 'size-12'} transition-all rounded-full {(model?.info?.meta
- ?.profile_image_url ?? '/favicon.png') !== '/favicon.png'
+ ?.profile_image_url ?? '/static/favicon.png') !== '/static/favicon.png'
? ' bg-cover bg-center bg-no-repeat'
: 'bg-black dark:bg-white'} bg-black dark:bg-white"
- style={(model?.info?.meta?.profile_image_url ?? '/favicon.png') !== '/favicon.png'
+ style={(model?.info?.meta?.profile_image_url ?? '/static/favicon.png') !==
+ '/static/favicon.png'
? `background-image: url('${model?.info?.meta?.profile_image_url}');`
: ''}
/>
@@ -743,10 +744,11 @@
: rmsLevel * 100 > 1
? 'size-[11.5rem]'
: 'size-44'} transition-all rounded-full {(model?.info?.meta
- ?.profile_image_url ?? '/favicon.png') !== '/favicon.png'
+ ?.profile_image_url ?? '/static/favicon.png') !== '/static/favicon.png'
? ' bg-cover bg-center bg-no-repeat'
: 'bg-black dark:bg-white'} "
- style={(model?.info?.meta?.profile_image_url ?? '/favicon.png') !== '/favicon.png'
+ style={(model?.info?.meta?.profile_image_url ?? '/static/favicon.png') !==
+ '/static/favicon.png'
? `background-image: url('${model?.info?.meta?.profile_image_url}');`
: ''}
/>
diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte
index 285c54ebcd..fde1e77107 100644
--- a/src/lib/components/workspace/Models.svelte
+++ b/src/lib/components/workspace/Models.svelte
@@ -297,7 +297,7 @@
: ''} "
>
diff --git a/src/routes/(app)/workspace/models/create/+page.svelte b/src/routes/(app)/workspace/models/create/+page.svelte
index 6534fb49cc..9d39078639 100644
--- a/src/routes/(app)/workspace/models/create/+page.svelte
+++ b/src/routes/(app)/workspace/models/create/+page.svelte
@@ -136,7 +136,7 @@
...info,
meta: {
...info.meta,
- profile_image_url: info.meta.profile_image_url ?? '/favicon.png',
+ profile_image_url: info.meta.profile_image_url ?? '/static/favicon.png',
suggestion_prompts: info.meta.suggestion_prompts
? info.meta.suggestion_prompts.filter((prompt) => prompt.content !== '')
: null
diff --git a/src/routes/(app)/workspace/models/edit/+page.svelte b/src/routes/(app)/workspace/models/edit/+page.svelte
index 9e11c65d97..12b314a05d 100644
--- a/src/routes/(app)/workspace/models/edit/+page.svelte
+++ b/src/routes/(app)/workspace/models/edit/+page.svelte
@@ -46,7 +46,7 @@
base_model_id: null,
name: '',
meta: {
- profile_image_url: '/favicon.png',
+ profile_image_url: '/static/favicon.png',
description: '',
suggestion_prompts: null,
tags: []
diff --git a/static/static/favicon.png b/static/static/favicon.png
new file mode 100644
index 0000000000..2b20747808
Binary files /dev/null and b/static/static/favicon.png differ