From d33ad462aa6f2105f0d118ab6f2fd74f693c8680 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 13 Feb 2026 17:38:57 -0600 Subject: [PATCH] refac --- CHANGELOG.md | 3 +++ backend/open_webui/routers/openai.py | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae2bed4b6..415762946 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - 🔍 **Knowledge tooltip z-index fix.** Knowledge base tooltips in the model editor no longer render behind other UI elements. [#21375](https://github.com/open-webui/open-webui/pull/21375) - 📚 **Knowledge collection layout fix.** Knowledge collection names in the chat input menu no longer appear indented or truncated due to incorrect flex layout. [#21374](https://github.com/open-webui/open-webui/pull/21374) - 🎯 **Model selector scroll position fix.** The model selector dropdown now correctly scrolls to and centers the currently selected model when opened, and resets scroll position when reopened. [Commit](https://github.com/open-webui/open-webui/commit/0b05b2fc7ed4c38af158707438ff404d1beb7c91) +- 🔍 **Builtin web search result count fix.** The built-in web search tool now respects the admin-configured result count instead of always using the model-provided value, ensuring consistent search behavior across all models. [#21373](https://github.com/open-webui/open-webui/pull/21373) +- 🧠 **Reasoning tag detection fix.** Tag detection for reasoning, solution, and code interpreter blocks now uses the output item's own text instead of a separate accumulated content string, eliminating edge cases where tags could be missed or incorrectly split across output boundaries. [Commit](https://github.com/open-webui/open-webui/commit/3b61562c82448cf83710d8b6ed29b797991aa83a) +- 💻 **Code interpreter context retention fix.** Code interpreter blocks are now always included in chat context regardless of processing mode, ensuring models are aware of previously executed code and don't unnecessarily retry code execution in follow-up turns. [Commit](https://github.com/open-webui/open-webui/commit/3b61562c82448cf83710d8b6ed29b797991aa83a) - 🌐 **Translation updates.** Portuguese (Brazil) translations were updated. [#21345](https://github.com/open-webui/open-webui/pull/21345) ## [0.8.0] - 2026-02-12 diff --git a/backend/open_webui/routers/openai.py b/backend/open_webui/routers/openai.py index e2bb29694..9fe421b4e 100644 --- a/backend/open_webui/routers/openai.py +++ b/backend/open_webui/routers/openai.py @@ -604,9 +604,12 @@ async def get_models( if r.status != 200: # Extract response error details if available error_detail = f"HTTP Error: {r.status}" - res = await r.json() - if "error" in res: - error_detail = f"External Error: {res['error']}" + try: + res = await r.json() + if "error" in res: + error_detail = f"External Error: {res['error']}" + except Exception: + pass raise Exception(error_detail) response_data = await r.json()