mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #5871] [MERGED] fix: Unsupported JSON schema type {type_} #76644
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
dev← Head:dev📝 Commits (2)
bdb2ce9fix: Unsupported JSON schema type {type_}b2f09e4Merge 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
thank you :)
regards
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.