mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #21638] [CLOSED] fix: handle string type in citation parser to prevent AttributeError #41806
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/21638
Author: @hztBUAA
Created: 2/20/2026
Status: ❌ Closed
Base:
main← Head:fix/citation-parser-type-error📝 Commits (1)
3eae45cfix: handle non-dict types in citation parser to prevent AttributeError📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+8 -2)📄 Description
contributor license agreement
Summary
AttributeError: 'str' object has no attribute 'get'when web search returned error strings instead of dict objectsCloses #21070
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.