Merge pull request #5956 from open-webui/dev

0.3.32
This commit is contained in:
Timothy Jaeryang Baek 2024-10-07 07:06:48 +02:00 committed by GitHub
commit bc29d5d3c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 90 additions and 36 deletions

View File

@ -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

4
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -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"

View File

@ -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();

View File

@ -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();
}
</script>

View File

@ -21,11 +21,7 @@
LATEST_VERSION: version.latest
})}
<a
href="https://github.com/open-webui/open-webui/releases/tag/v{version.latest}"
target="_blank"
class="underline"
>
<a href="https://github.com/open-webui/open-webui/releases" target="_blank" class="underline">
{$i18n.t('Update for the latest features and improvements.')}</a
>
</div>

View File

@ -174,8 +174,14 @@
</title>
</svelte:head>
<div class="mb-3 flex justify-between items-center">
<div class=" text-lg font-semibold self-center">{$i18n.t('Functions')}</div>
<div class="mb-3">
<div class="flex justify-between items-center">
<div class="flex md:self-center text-lg font-medium px-0.5">
{$i18n.t('Functions')}
<div class="flex self-center w-[1px] h-6 mx-2.5 bg-gray-200 dark:bg-gray-700" />
<span class="text-lg font-medium text-gray-500 dark:text-gray-300">{$functions.length}</span>
</div>
</div>
</div>
<div class=" flex w-full space-x-2">
@ -219,7 +225,7 @@
</a>
</div>
</div>
<hr class=" dark:border-gray-850 my-2.5" />
<hr class=" border-gray-50 dark:border-gray-850 my-2.5" />
<div class="my-3 mb-5">
{#each $functions.filter((f) => query === '' || f.name

View File

@ -294,7 +294,15 @@
}}
/>
<div class=" text-lg font-semibold mb-3">{$i18n.t('Models')}</div>
<div class="mb-3">
<div class="flex justify-between items-center">
<div class="flex md:self-center text-lg font-medium px-0.5">
{$i18n.t('Models')}
<div class="flex self-center w-[1px] h-6 mx-2.5 bg-gray-200 dark:bg-gray-700" />
<span class="text-lg font-medium text-gray-500 dark:text-gray-300">{$models.length}</span>
</div>
</div>
</div>
<div class=" flex w-full space-x-2">
<div class="flex flex-1">
@ -337,9 +345,10 @@
</a>
</div>
</div>
<hr class=" dark:border-gray-850 my-2.5" />
<a class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-2" href="/workspace/models/create">
<hr class=" border-gray-50 dark:border-gray-850 my-2.5" />
<a class=" flex space-x-4 cursor-pointer w-full mb-2 px-3 py-1" href="/workspace/models/create">
<div class=" self-center w-10 flex-shrink-0">
<div
class="w-full h-10 flex justify-center rounded-full bg-transparent dark:bg-gray-700 border border-dashed border-gray-200"
@ -360,7 +369,7 @@
</div>
</a>
<hr class=" dark:border-gray-850" />
<hr class=" border-gray-50 dark:border-gray-850 my-2.5" />
<div class=" my-2 mb-5" id="model-list">
{#each _models.filter((m) => searchValue === '' || m.name

View File

@ -64,8 +64,14 @@
</title>
</svelte:head>
<div class="mb-3 flex justify-between items-center">
<div class=" text-lg font-semibold self-center">{$i18n.t('Prompts')}</div>
<div class="mb-3">
<div class="flex justify-between items-center">
<div class="flex md:self-center text-lg font-medium px-0.5">
{$i18n.t('Prompts')}
<div class="flex self-center w-[1px] h-6 mx-2.5 bg-gray-200 dark:bg-gray-700" />
<span class="text-lg font-medium text-gray-500 dark:text-gray-300">{$prompts.length}</span>
</div>
</div>
</div>
<div class=" flex w-full space-x-2">
@ -109,7 +115,8 @@
</a>
</div>
</div>
<hr class=" dark:border-gray-850 my-2.5" />
<hr class=" border-gray-50 dark:border-gray-850 my-2.5" />
<div class="my-3 mb-5">
{#each $prompts.filter((p) => query === '' || p.command.includes(query)) as prompt}

View File

@ -146,8 +146,14 @@
</title>
</svelte:head>
<div class="mb-3 flex justify-between items-center">
<div class=" text-lg font-semibold self-center">{$i18n.t('Tools')}</div>
<div class="mb-3">
<div class="flex justify-between items-center">
<div class="flex md:self-center text-lg font-medium px-0.5">
{$i18n.t('Tools')}
<div class="flex self-center w-[1px] h-6 mx-2.5 bg-gray-200 dark:bg-gray-700" />
<span class="text-lg font-medium text-gray-500 dark:text-gray-300">{$tools.length}</span>
</div>
</div>
</div>
<div class=" flex w-full space-x-2">
@ -191,7 +197,8 @@
</a>
</div>
</div>
<hr class=" dark:border-gray-850 my-2.5" />
<hr class=" border-gray-50 dark:border-gray-850 my-2.5" />
<div class="my-3 mb-5">
{#each $tools.filter((t) => query === '' || t.name