[PR #5650] [CLOSED] fix: Unsupported JSON schema type {type_} #37358

Closed
opened 2026-04-25 10:52:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/5650
Author: @tcgumus
Created: 9/24/2024
Status: Closed

Base: devHead: patch-1


📝 Commits (10+)

📊 Changes

3 files changed (+6 additions, -2 deletions)

View changed files

📝 backend/open_webui/utils/schemas.py (+4 -0)
📝 backend/requirements.txt (+1 -1)
📝 pyproject.toml (+1 -1)

📄 Description

checklist passes.

Changelog Entry

Description

json_schema_to_pydantic_type gives error on some functions when used by auto_filter and called automatically. this fixes the issue while doesn't change any other case. tested and tried for ootb and customized envrionments.

Added

added type_ == "optional" for JSON schema support

Changed

change on schemas.py for JSON support on autofilter calls.

Deprecated

none

Removed

none

Fixed

bug fixed: ValueError: Unsupported JSON schema type: optional

Security

none

Breaking Changes

  • BREAKING CHANGE: none of my tools were working. now they do.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/5650 **Author:** [@tcgumus](https://github.com/tcgumus) **Created:** 9/24/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `patch-1` --- ### 📝 Commits (10+) - [`bd81fc8`](https://github.com/open-webui/open-webui/commit/bd81fc8bffc27739920986f5bab1dd218e639d85) downgrade authlib to 1.3.1 - [`5fe2795`](https://github.com/open-webui/open-webui/commit/5fe2795db8d6659a3f6192ed70f8e2104506c22c) Merge pull request #5556 from open-webui/dev - [`9b05fe3`](https://github.com/open-webui/open-webui/commit/9b05fe3c54b1f0388b640b356ea49bcc30536694) Update pyproject.toml - [`79b5430`](https://github.com/open-webui/open-webui/commit/79b5430a9e729cb18d0123bd0319cffe0d3bad7b) Merge pull request #5546 from itaybar/bugfix/downgrade_authlib - [`578d52b`](https://github.com/open-webui/open-webui/commit/578d52b89ddbc549127bd7d5b9796835e0443580) Merge pull request #5562 from open-webui/dev - [`ff8a2da`](https://github.com/open-webui/open-webui/commit/ff8a2da751e4b64441909554965cd51c60f5332a) Merge pull request #5565 from open-webui/dev - [`f47dffe`](https://github.com/open-webui/open-webui/commit/f47dffe6e11c6fc63f2dc6029c4cb5e458d22fe7) Merge pull request #5576 from open-webui/dev - [`54d63ec`](https://github.com/open-webui/open-webui/commit/54d63ece6f85d96f8c079dd802c71be6a9518d3e) Merge pull request #5583 from open-webui/dev - [`6b46316`](https://github.com/open-webui/open-webui/commit/6b463164f4b129e0ce4bdc9008dd661214fe5eb5) Merge pull request #5584 from open-webui/dev - [`e16c610`](https://github.com/open-webui/open-webui/commit/e16c610a35537bd28f042273cd3db85ceea6cc4b) fix: Unsupported JSON schema type {type_} ### 📊 Changes **3 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/schemas.py` (+4 -0) 📝 `backend/requirements.txt` (+1 -1) 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description checklist passes. # Changelog Entry ### Description json_schema_to_pydantic_type gives error on some functions when used by auto_filter and called automatically. this fixes the issue while doesn't change any other case. tested and tried for ootb and customized envrionments. ### Added added type_ == "optional" for JSON schema support ### Changed change on schemas.py for JSON support on autofilter calls. ### Deprecated none ### Removed none ### Fixed bug fixed: ValueError: Unsupported JSON schema type: optional ### Security none ### Breaking Changes - **BREAKING CHANGE**: none of my tools were working. now they do. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 10:52:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#37358