mirror of
https://github.com/open-webui/functions.git
synced 2026-11-05 01:38:16 +00:00
[PR #16] [CLOSED] fix: “Summarizer error: 'list' object has no attribute 'split'“ #17
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/functions#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/functions/pull/16
Author: @bitbound
Created: 5/27/2026
Status: ❌ Closed
Base:
main← Head:safe-content-extraction📝 Commits (1)
8c8bf6fAdd _safe_get_text_content function to safely extract content, whether list-based or raw string.📊 Changes
1 file changed (+32 additions, -5 deletions)
View changed files
📝
functions/filters/summarizer/main.py(+32 -5)📄 Description
First off, thanks for this summarizer filter! It's been very helpful.
However, I'll occasionally start getting the error, “Summarizer error: 'list' object has no attribute 'split'“. It looks like the message content is sometimes of type list.
Digging around in the backend, I see places like this that show message content can be a list of dictionaries: https://github.com/open-webui/open-webui/blob/main/backend/open_webui/utils/payload.py#L249
I plugged this change into my OWUI instance, and it's working. It also fixed a session that was stuck on the summarizer error.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.