mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #5650] [CLOSED] fix: Unsupported JSON schema type {type_} #60584
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/5650
Author: @tcgumus
Created: 9/24/2024
Status: ❌ Closed
Base:
dev← Head:patch-1📝 Commits (10+)
bd81fc8downgrade authlib to 1.3.15fe2795Merge pull request #5556 from open-webui/dev9b05fe3Update pyproject.toml79b5430Merge pull request #5546 from itaybar/bugfix/downgrade_authlib578d52bMerge pull request #5562 from open-webui/devff8a2daMerge pull request #5565 from open-webui/devf47dffeMerge pull request #5576 from open-webui/dev54d63ecMerge pull request #5583 from open-webui/dev6b46316Merge pull request #5584 from open-webui/deve16c610fix: Unsupported JSON schema type {type_}📊 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.