mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #20751] [CLOSED] fix: handle None value for capabilities in get_model_capability helper #48812
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/20751
Author: @YuriNachos
Created: 1/17/2026
Status: ❌ Closed
Base:
dev← Head:fix-20565-capabilities-none-check📝 Commits (1)
4e3856afix: handle None value for capabilities in get_model_capability helper📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/tools.py(+1 -1)📄 Description
Description
Added
Changed
or {}to handle None value for capabilities inget_model_capability()helper functionDeprecated
Removed
Fixed
meta.capabilitieswasNone, calling.get()on it would crashSecurity
Breaking Changes
Additional Information
middleware.pyto theget_model_capability()helper intools.pycapabilities: Nonein metadataContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.