[PR #16] [CLOSED] fix: “Summarizer error: 'list' object has no attribute 'split'“ #17

Closed
opened 2026-10-18 14:07:33 +00:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 8c8bf6f Add _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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/functions/pull/16 **Author:** [@bitbound](https://github.com/bitbound) **Created:** 5/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `safe-content-extraction` --- ### 📝 Commits (1) - [`8c8bf6f`](https://github.com/open-webui/functions/commit/8c8bf6f9cec40b2d06a3ee24817dbfb29754f27f) Add _safe_get_text_content function to safely extract content, whether list-based or raw string. ### 📊 Changes **1 file changed** (+32 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `functions/filters/summarizer/main.py` (+32 -5) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-18 14:07:33 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/functions#17
No description provided.