From 86f822fd9a406737472508f0049fcca8b2e1ea72 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 21:06:47 -0700 Subject: [PATCH 1/6] chore: pyproject bumps --- pyproject.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1df284f80..f7a90a5b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ license = { file = "LICENSE" } dependencies = [ "fastapi==0.111.0", "uvicorn[standard]==0.30.6", - "pydantic==2.8.2", + "pydantic==2.9.2", "python-multipart==0.0.9", "Flask==3.0.3", @@ -19,7 +19,7 @@ dependencies = [ "passlib[bcrypt]==1.7.4", "requests==2.32.3", - "aiohttp==3.10.5", + "aiohttp==3.10.8", "sqlalchemy==2.0.32", "alembic==1.13.2", @@ -43,7 +43,7 @@ dependencies = [ "langchain==0.2.15", "langchain-community==0.2.12", - "langchain-chroma==0.1.2", + "langchain-chroma==0.1.4", "fake-useragent==1.5.1", "chromadb==0.5.9", @@ -62,7 +62,7 @@ dependencies = [ "nltk==3.9.1", "Markdown==3.7", "pypandoc==1.13", - "pandas==2.2.2", + "pandas==2.2.3", "openpyxl==3.1.5", "pyxlsb==1.0.10", "xlrd==2.0.1", @@ -87,10 +87,10 @@ dependencies = [ "extract_msg", "pydub", - "duckduckgo-search~=6.2.11", + "duckduckgo-search~=6.2.13", "docker~=7.1.0", - "pytest~=8.2.2", + "pytest~=8.3.2", "pytest-docker~=3.1.1" ] readme = "README.md" From 6f9080dfe026348c7e6492dad68d44efdadac5cc Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 21:42:47 -0700 Subject: [PATCH 2/6] fix: call mode not working in landing page --- src/lib/components/chat/ChatControls.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/ChatControls.svelte b/src/lib/components/chat/ChatControls.svelte index 68c976b5c..45d9b93dc 100644 --- a/src/lib/components/chat/ChatControls.svelte +++ b/src/lib/components/chat/ChatControls.svelte @@ -83,7 +83,7 @@ document.removeEventListener('mouseup', onMouseUp); }); - $: if (!chatId) { + const closeHandler = () => { showControls.set(false); showOverview.set(false); showArtifacts.set(false); @@ -91,6 +91,10 @@ if ($showCallOverlay) { showCallOverlay.set(false); } + }; + + $: if (!chatId) { + closeHandler(); } From 656e75372cd12325f943e628bebfb64f6f8a4751 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 21:51:03 -0700 Subject: [PATCH 3/6] enh: workspace models, prompts, tools, functions count --- src/lib/components/workspace/Functions.svelte | 12 +++++++++--- src/lib/components/workspace/Models.svelte | 17 +++++++++++++---- src/lib/components/workspace/Prompts.svelte | 13 ++++++++++--- src/lib/components/workspace/Tools.svelte | 13 ++++++++++--- 4 files changed, 42 insertions(+), 13 deletions(-) diff --git a/src/lib/components/workspace/Functions.svelte b/src/lib/components/workspace/Functions.svelte index 25a8a8540..2618b25b3 100644 --- a/src/lib/components/workspace/Functions.svelte +++ b/src/lib/components/workspace/Functions.svelte @@ -174,8 +174,14 @@ -
-
{$i18n.t('Functions')}
+
+
+
+ {$i18n.t('Functions')} +
+ {$functions.length} +
+
@@ -219,7 +225,7 @@
-
+
{#each $functions.filter((f) => query === '' || f.name diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte index 4541b1cc9..46b676c84 100644 --- a/src/lib/components/workspace/Models.svelte +++ b/src/lib/components/workspace/Models.svelte @@ -294,7 +294,15 @@ }} /> -
{$i18n.t('Models')}
+
+
+
+ {$i18n.t('Models')} +
+ {$models.length} +
+
+
@@ -337,9 +345,10 @@
-
- +
+ +
-
+
{#each _models.filter((m) => searchValue === '' || m.name diff --git a/src/lib/components/workspace/Prompts.svelte b/src/lib/components/workspace/Prompts.svelte index c1a7e2e06..7f2b1d920 100644 --- a/src/lib/components/workspace/Prompts.svelte +++ b/src/lib/components/workspace/Prompts.svelte @@ -64,8 +64,14 @@ -
-
{$i18n.t('Prompts')}
+
+
+
+ {$i18n.t('Prompts')} +
+ {$prompts.length} +
+
@@ -109,7 +115,8 @@
-
+ +
{#each $prompts.filter((p) => query === '' || p.command.includes(query)) as prompt} diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte index fbbaa8878..a3ddaae0d 100644 --- a/src/lib/components/workspace/Tools.svelte +++ b/src/lib/components/workspace/Tools.svelte @@ -146,8 +146,14 @@ -
-
{$i18n.t('Tools')}
+
+
+
+ {$i18n.t('Tools')} +
+ {$tools.length} +
+
@@ -191,7 +197,8 @@
-
+ +
{#each $tools.filter((t) => query === '' || t.name From 9193c9bd7d0def04366a48fac8a8053cc97b3700 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 21:52:13 -0700 Subject: [PATCH 4/6] refac: update info url --- src/lib/components/layout/UpdateInfoToast.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/components/layout/UpdateInfoToast.svelte b/src/lib/components/layout/UpdateInfoToast.svelte index bb75de94f..4dc84e0ef 100644 --- a/src/lib/components/layout/UpdateInfoToast.svelte +++ b/src/lib/components/layout/UpdateInfoToast.svelte @@ -21,11 +21,7 @@ LATEST_VERSION: version.latest })} - + {$i18n.t('Update for the latest features and improvements.')}
From 57df49274c3275c9d28aa57e37fc737be083a67e Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 22:00:23 -0700 Subject: [PATCH 5/6] refac: tools url param handling --- src/lib/components/chat/Chat.svelte | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 853ad4c8c..54e14d984 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -352,16 +352,22 @@ webSearchEnabled = true; } - if ($page.url.searchParams.get('q')) { - prompt = $page.url.searchParams.get('q') ?? ''; - selectedToolIds = ( - $page.url.searchParams.get('tools') ?? - $page.url.searchParams.get('tool-ids') ?? - '' - ) - .split(',') + if ($page.url.searchParams.get('tools')) { + selectedToolIds = $page.url.searchParams + .get('tools') + ?.split(',') .map((id) => id.trim()) .filter((id) => id); + } else if ($page.url.searchParams.get('tool-ids')) { + selectedToolIds = $page.url.searchParams + .get('tool-ids') + ?.split(',') + .map((id) => id.trim()) + .filter((id) => id); + } + + if ($page.url.searchParams.get('q')) { + prompt = $page.url.searchParams.get('q') ?? ''; if (prompt) { await tick(); From fe18aebdd929fe1def99d842ed4ba91637456821 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 6 Oct 2024 22:06:24 -0700 Subject: [PATCH 6/6] doc: changelog --- CHANGELOG.md | 19 +++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff5af104f..f7ee69b3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.32] - 2024-10-06 + +### Added + +- **🔢 Workspace Enhancements**: Added a display count for models, prompts, tools, and functions in the workspace, providing a clear overview and easier management. + +### Fixed + +- **🖥️ Web and YouTube Attachment Fix**: Resolved an issue where attaching web links and YouTube videos was malfunctioning, ensuring seamless integration and display within chats. +- **📞 Call Mode Activation on Landing Page**: Fixed a bug where call mode was not operational from the landing page. + +### Changed + +- **🔄 URL Parameter Refinement**: Updated the 'tool_ids' URL parameter to 'tools' or 'tool-ids' for more intuitive and consistent user experience. +- **🎨 Floating Buttons Styling Update**: Refactored the styling of floating buttons to intelligently adjust to the left side when there isn't enough room on the right, improving interface usability and aesthetic. +- **🔧 Enhanced Accessibility for Floating Buttons**: Implemented the ability to close floating buttons with the 'Esc' key, making workflow smoother and more efficient for users navigating via keyboard. +- **🖇️ Updated Information URL**: Information URLs now direct users to a general release page rather than a version-specific URL, ensuring access to the latest and relevant details all in one place. +- **📦 Library Dependencies Update**: Upgraded dependencies to ensure compatibility and performance optimization for pip installs. + ## [0.3.31] - 2024-10-06 ### Added diff --git a/package-lock.json b/package-lock.json index 5bedd09d8..d031abeea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "open-webui", - "version": "0.3.31", + "version": "0.3.32", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "open-webui", - "version": "0.3.31", + "version": "0.3.32", "dependencies": { "@codemirror/lang-javascript": "^6.2.2", "@codemirror/lang-python": "^6.1.6", diff --git a/package.json b/package.json index 3acfcd775..2f403bf12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-webui", - "version": "0.3.31", + "version": "0.3.32", "private": true, "scripts": { "dev": "npm run pyodide:fetch && vite dev --host",