Skip to content

Commit 4d667e4

Browse files
authored
Merge pull request open-webui#9480 from open-webui/dev
0.5.11
2 parents e9d6ada + 57e256b commit 4d667e4

File tree

140 files changed

+5769
-1826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+5769
-1826
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.11] - 2025-02-13
9+
10+
### Added
11+
12+
- **🎤 Kokoro-JS TTS Support**: A new on-device, high-quality text-to-speech engine has been integrated, vastly improving voice generation quality—everything runs directly in your browser.
13+
- **🐍 Jupyter Notebook Support in Code Interpreter**: Now, you can configure Code Interpreter to run Python code not only via Pyodide but also through Jupyter, offering a more robust coding environment for AI-driven computations and analysis.
14+
- **🔗 Direct API Connections for Private & Local Inference**: You can now connect Open WebUI to your private or localhost API inference endpoints. CORS must be enabled, but this unlocks direct, on-device AI infrastructure support.
15+
- **🔍 Advanced Domain Filtering for Web Search**: You can now specify which domains should be included or excluded from web searches, refining results for more relevant information retrieval.
16+
- **🚀 Improved Image Generation Metadata Handling**: Generated images now retain metadata for better organization and future retrieval.
17+
- **📂 S3 Key Prefix Support**: Fine-grained control over S3 storage file structuring with configurable key prefixes.
18+
- **📸 Support for Image-Only Messages**: Send messages containing only images, facilitating more visual-centric interactions.
19+
- **🌍 Updated Translations**: German, Spanish, Traditional Chinese, and Catalan translations updated for better multilingual support.
20+
21+
### Fixed
22+
23+
- **🔧 OAuth Debug Logs & Username Claim Fixes**: Debug logs have been added for OAuth role and group management, with fixes ensuring proper OAuth username retrieval and claim handling.
24+
- **📌 Citations Formatting & Toggle Fixes**: Inline citation toggles now function correctly, and citations with more than three sources are now fully visible when expanded.
25+
- **📸 ComfyUI Maximum Seed Value Constraint Fixed**: The maximum allowed seed value for ComfyUI has been corrected, preventing unintended behavior.
26+
- **🔑 Connection Settings Stability**: Addressed connection settings issues that were causing instability when saving configurations.
27+
- **📂 GGUF Model Upload Stability**: Fixed upload inconsistencies for GGUF models, ensuring reliable local model handling.
28+
- **🔧 Web Search Configuration Bug**: Fixed issues where web search filters and settings weren't correctly applied.
29+
- **💾 User Settings Persistence Fix**: Ensured user-specific settings are correctly saved and applied across sessions.
30+
- **🔄 OpenID Username Retrieval Enhancement**: Usernames are now correctly picked up and assigned for OpenID Connect (OIDC) logins.
31+
32+
### Changed
33+
34+
- **🔗 Improved Direct Connections Integration**: Simplified the configuration process for setting up direct API connections, making it easier to integrate custom inference endpoints.
35+
836
## [0.5.10] - 2025-02-05
937

1038
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock containrrr/wa
174174

175175
In the last part of the command, replace `open-webui` with your container name if it is different.
176176

177-
Check our Migration Guide available in our [Open WebUI Documentation](https://docs.openwebui.com/tutorials/migration/).
177+
Check our Updating Guide available in our [Open WebUI Documentation](https://docs.openwebui.com/getting-started/updating).
178178

179179
### Using the Dev Branch 🌙
180180

backend/open_webui/config.py

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ def oidc_oauth_register(client):
660660
S3_SECRET_ACCESS_KEY = os.environ.get("S3_SECRET_ACCESS_KEY", None)
661661
S3_REGION_NAME = os.environ.get("S3_REGION_NAME", None)
662662
S3_BUCKET_NAME = os.environ.get("S3_BUCKET_NAME", None)
663+
S3_KEY_PREFIX = os.environ.get("S3_KEY_PREFIX", None)
663664
S3_ENDPOINT_URL = os.environ.get("S3_ENDPOINT_URL", None)
664665

665666
GCS_BUCKET_NAME = os.environ.get("GCS_BUCKET_NAME", None)
@@ -682,6 +683,17 @@ def oidc_oauth_register(client):
682683
CACHE_DIR = f"{DATA_DIR}/cache"
683684
Path(CACHE_DIR).mkdir(parents=True, exist_ok=True)
684685

686+
687+
####################################
688+
# DIRECT CONNECTIONS
689+
####################################
690+
691+
ENABLE_DIRECT_CONNECTIONS = PersistentConfig(
692+
"ENABLE_DIRECT_CONNECTIONS",
693+
"direct.enable",
694+
os.environ.get("ENABLE_DIRECT_CONNECTIONS", "True").lower() == "true",
695+
)
696+
685697
####################################
686698
# OLLAMA_BASE_URL
687699
####################################
@@ -1325,6 +1337,54 @@ class BannerModel(BaseModel):
13251337
Responses from models: {{responses}}"""
13261338

13271339

1340+
####################################
1341+
# Code Interpreter
1342+
####################################
1343+
1344+
ENABLE_CODE_INTERPRETER = PersistentConfig(
1345+
"ENABLE_CODE_INTERPRETER",
1346+
"code_interpreter.enable",
1347+
os.environ.get("ENABLE_CODE_INTERPRETER", "True").lower() == "true",
1348+
)
1349+
1350+
CODE_INTERPRETER_ENGINE = PersistentConfig(
1351+
"CODE_INTERPRETER_ENGINE",
1352+
"code_interpreter.engine",
1353+
os.environ.get("CODE_INTERPRETER_ENGINE", "pyodide"),
1354+
)
1355+
1356+
CODE_INTERPRETER_PROMPT_TEMPLATE = PersistentConfig(
1357+
"CODE_INTERPRETER_PROMPT_TEMPLATE",
1358+
"code_interpreter.prompt_template",
1359+
os.environ.get("CODE_INTERPRETER_PROMPT_TEMPLATE", ""),
1360+
)
1361+
1362+
CODE_INTERPRETER_JUPYTER_URL = PersistentConfig(
1363+
"CODE_INTERPRETER_JUPYTER_URL",
1364+
"code_interpreter.jupyter.url",
1365+
os.environ.get("CODE_INTERPRETER_JUPYTER_URL", ""),
1366+
)
1367+
1368+
CODE_INTERPRETER_JUPYTER_AUTH = PersistentConfig(
1369+
"CODE_INTERPRETER_JUPYTER_AUTH",
1370+
"code_interpreter.jupyter.auth",
1371+
os.environ.get("CODE_INTERPRETER_JUPYTER_AUTH", ""),
1372+
)
1373+
1374+
CODE_INTERPRETER_JUPYTER_AUTH_TOKEN = PersistentConfig(
1375+
"CODE_INTERPRETER_JUPYTER_AUTH_TOKEN",
1376+
"code_interpreter.jupyter.auth_token",
1377+
os.environ.get("CODE_INTERPRETER_JUPYTER_AUTH_TOKEN", ""),
1378+
)
1379+
1380+
1381+
CODE_INTERPRETER_JUPYTER_AUTH_PASSWORD = PersistentConfig(
1382+
"CODE_INTERPRETER_JUPYTER_AUTH_PASSWORD",
1383+
"code_interpreter.jupyter.auth_password",
1384+
os.environ.get("CODE_INTERPRETER_JUPYTER_AUTH_PASSWORD", ""),
1385+
)
1386+
1387+
13281388
DEFAULT_CODE_INTERPRETER_PROMPT = """
13291389
#### Tools Available
13301390
@@ -1335,9 +1395,8 @@ class BannerModel(BaseModel):
13351395
- When coding, **always aim to print meaningful outputs** (e.g., results, tables, summaries, or visuals) to better interpret and verify the findings. Avoid relying on implicit outputs; prioritize explicit and clear print statements so the results are effectively communicated to the user.
13361396
- After obtaining the printed output, **always provide a concise analysis, interpretation, or next steps to help the user understand the findings or refine the outcome further.**
13371397
- If the results are unclear, unexpected, or require validation, refine the code and execute it again as needed. Always aim to deliver meaningful insights from the results, iterating if necessary.
1338-
- If a link is provided for an image, audio, or any file, include it in the response exactly as given to ensure the user has access to the original resource.
1398+
- **If a link to an image, audio, or any file is provided in markdown format in the output, ALWAYS regurgitate word for word, explicitly display it as part of the response to ensure the user can access it easily, do NOT change the link.**
13391399
- All responses should be communicated in the chat's primary language, ensuring seamless understanding. If the chat is multilingual, default to English for clarity.
1340-
- **If a link to an image, audio, or any file is provided in markdown format, ALWAYS regurgitate explicitly display it as part of the response to ensure the user can access it easily, do NOT change the link.**
13411400
13421401
Ensure that the tools are effectively utilized to achieve the highest-quality analysis for the user."""
13431402

@@ -1645,7 +1704,7 @@ class BannerModel(BaseModel):
16451704
# This ensures the highest level of safety and reliability of the information sources.
16461705
RAG_WEB_SEARCH_DOMAIN_FILTER_LIST = PersistentConfig(
16471706
"RAG_WEB_SEARCH_DOMAIN_FILTER_LIST",
1648-
"rag.rag.web.search.domain.filter_list",
1707+
"rag.web.search.domain.filter_list",
16491708
[
16501709
# "wikipedia.com",
16511710
# "wikimedia.org",
@@ -1690,6 +1749,12 @@ class BannerModel(BaseModel):
16901749
os.getenv("MOJEEK_SEARCH_API_KEY", ""),
16911750
)
16921751

1752+
BOCHA_SEARCH_API_KEY = PersistentConfig(
1753+
"BOCHA_SEARCH_API_KEY",
1754+
"rag.web.search.bocha_search_api_key",
1755+
os.getenv("BOCHA_SEARCH_API_KEY", ""),
1756+
)
1757+
16931758
SERPSTACK_API_KEY = PersistentConfig(
16941759
"SERPSTACK_API_KEY",
16951760
"rag.web.search.serpstack_api_key",
@@ -2012,6 +2077,12 @@ class BannerModel(BaseModel):
20122077
and os.environ.get("WHISPER_MODEL_AUTO_UPDATE", "").lower() == "true"
20132078
)
20142079

2080+
# Add Deepgram configuration
2081+
DEEPGRAM_API_KEY = PersistentConfig(
2082+
"DEEPGRAM_API_KEY",
2083+
"audio.stt.deepgram.api_key",
2084+
os.getenv("DEEPGRAM_API_KEY", ""),
2085+
)
20152086

20162087
AUDIO_STT_OPENAI_API_BASE_URL = PersistentConfig(
20172088
"AUDIO_STT_OPENAI_API_BASE_URL",

backend/open_webui/env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"RAG",
9393
"WEBHOOK",
9494
"SOCKET",
95+
"OAUTH",
9596
]
9697

9798
SRC_LOG_LEVELS = {}

0 commit comments

Comments
 (0)