[PR #5871] [MERGED] fix: Unsupported JSON schema type {type_} #125428

Closed
opened 2026-05-21 05:57:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/5871
Author: @tcgumus
Created: 10/2/2024
Status: Merged
Merged: 10/3/2024
Merged by: @tjbck

Base: devHead: dev


📝 Commits (2)

  • bdb2ce9 fix: Unsupported JSON schema type {type_}
  • b2f09e4 Merge pull request #1 from tcgumus/dev-fix-unsupported-json-error

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 backend/open_webui/utils/schemas.py (+4 -0)

📄 Description

I created a working development environment on windows to thoroughly test this. Worked on dev branch and reopened this PR as you said at https://github.com/open-webui/open-webui/pull/5650

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 environments on windows platforms.

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.

thank you :)
regards


🔄 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/5871 **Author:** [@tcgumus](https://github.com/tcgumus) **Created:** 10/2/2024 **Status:** ✅ Merged **Merged:** 10/3/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (2) - [`bdb2ce9`](https://github.com/open-webui/open-webui/commit/bdb2ce944856f7dbf169a16326f1815b56f3e245) fix: Unsupported JSON schema type {type_} - [`b2f09e4`](https://github.com/open-webui/open-webui/commit/b2f09e46233381a164742f94f49e776159720ad0) Merge pull request #1 from tcgumus/dev-fix-unsupported-json-error ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/schemas.py` (+4 -0) </details> ### 📄 Description I created a working development environment on windows to thoroughly test this. Worked on dev branch and reopened this PR as you said at https://github.com/open-webui/open-webui/pull/5650 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 environments on windows platforms. ### 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. thank you :) regards --- <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-05-21 05:57:10 -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#125428