[GH-ISSUE #17132] issue: Bug: The adaptive_memory_v3 function crashes with AttributeError when an image is attached. #18179

Closed
opened 2026-04-20 00:23:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Piste on GitHub (Sep 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17132

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.26

Ollama Version (if applicable)

0.11.8

Operating System

Ubuntu

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

I am using the Adaptive Memory v3 function https://openwebui.com/f/alexgrama7/adaptive_memory_v2
I should be able to attach a picture in a conversation that's already started even when using a function

Actual Behavior

If I attach a picture to an existing conversation, Adaptive memory v3 crashes with this trace:

Steps to Reproduce

  1. ensure that Adaptive Memory v3 is turned on for the model you are going to use
  2. start a conversation by saying "hi" with this very same model
  3. wait for LLM answer
  4. attach a picture and send
  5. see the open webui logs for trace. the conversation just halts with an spinner-like indicator that something is happening but it has actually crashed silently.

Logs & Screenshots

future: <Task finished name='Task-214589' coro=<chat_completion.<locals>.process_chat() done, defined at /app/backend/open_webui/main.py:1495> exception=HTTPException(status_code=400, detail="Error: 'list' object has no attribute 'strip'")>
Traceback (most recent call last):
  File "/app/backend/open_webui/utils/middleware.py", line 880, in process_chat_payload
    form_data, flags = await process_filter_functions(
    │                        └ <function process_filter_functions at 0x7ddf93fdafc0>
    └ {'stream': True, 'model': 'google_genai.gemini-2.5-pro', 'messages': [{'role': 'system', 'content': 'when sharing command lin...
  File "/app/backend/open_webui/utils/filter.py", line 127, in process_filter_functions
    raise e
  File "/app/backend/open_webui/utils/filter.py", line 121, in process_filter_functions
    form_data = await handler(**params)
                      │         └ {'body': {'stream': True, 'model': 'google_genai.gemini-2.5-pro', 'messages': [{'role': 'system', 'content': 'when sharing co...
                      └ <bound method Filter.inlet of <function_adaptive_memory_v3.Filter object at 0x7ddf8ed40350>>
  File "<string>", line 1611, in inlet
AttributeError: 'list' object has no attribute 'strip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/backend/open_webui/main.py", line 1497, in process_chat
    form_data, metadata, events = await process_chat_payload(
    │          │                        └ <function process_chat_payload at 0x7ddf905b40e0>
    │          └ {'user_id': 'e3f807b5-35b1-483a-888c-ec0505d094c1', 'chat_id': 'd18ded82-ee3a-439a-a4b9-0df70cc90d02', 'message_id': '775faa9...
    └ {'stream': True, 'model': 'google_genai.gemini-2.5-pro', 'messages': [{'role': 'system', 'content': 'when sharing command lin...
  File "/app/backend/open_webui/utils/middleware.py", line 888, in process_chat_payload
    raise Exception(f"Error: {e}")
Exception: Error: 'list' object has no attribute 'strip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
> File "/app/backend/open_webui/main.py", line 1541, in process_chat
    raise HTTPException(
          └ <class 'fastapi.exceptions.HTTPException'>
fastapi.exceptions.HTTPException: 400: Error: 'list' object has no attribute 'strip'

Additional Information

No response

Originally created by @Piste on GitHub (Sep 1, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17132 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.26 ### Ollama Version (if applicable) 0.11.8 ### Operating System Ubuntu ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior I am using the Adaptive Memory v3 function https://openwebui.com/f/alexgrama7/adaptive_memory_v2 I should be able to attach a picture in a conversation that's already started even when using a function ### Actual Behavior If I attach a picture to an existing conversation, Adaptive memory v3 crashes with this trace: ### Steps to Reproduce 1. ensure that Adaptive Memory v3 is turned on for the model you are going to use 2. start a conversation by saying "hi" with this very same model 3. wait for LLM answer 4. attach a picture and send 5. see the open webui logs for trace. the conversation just halts with an spinner-like indicator that something is happening but it has actually crashed silently. ### Logs & Screenshots ``` future: <Task finished name='Task-214589' coro=<chat_completion.<locals>.process_chat() done, defined at /app/backend/open_webui/main.py:1495> exception=HTTPException(status_code=400, detail="Error: 'list' object has no attribute 'strip'")> Traceback (most recent call last): File "/app/backend/open_webui/utils/middleware.py", line 880, in process_chat_payload form_data, flags = await process_filter_functions( │ └ <function process_filter_functions at 0x7ddf93fdafc0> └ {'stream': True, 'model': 'google_genai.gemini-2.5-pro', 'messages': [{'role': 'system', 'content': 'when sharing command lin... File "/app/backend/open_webui/utils/filter.py", line 127, in process_filter_functions raise e File "/app/backend/open_webui/utils/filter.py", line 121, in process_filter_functions form_data = await handler(**params) │ └ {'body': {'stream': True, 'model': 'google_genai.gemini-2.5-pro', 'messages': [{'role': 'system', 'content': 'when sharing co... └ <bound method Filter.inlet of <function_adaptive_memory_v3.Filter object at 0x7ddf8ed40350>> File "<string>", line 1611, in inlet AttributeError: 'list' object has no attribute 'strip' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/backend/open_webui/main.py", line 1497, in process_chat form_data, metadata, events = await process_chat_payload( │ │ └ <function process_chat_payload at 0x7ddf905b40e0> │ └ {'user_id': 'e3f807b5-35b1-483a-888c-ec0505d094c1', 'chat_id': 'd18ded82-ee3a-439a-a4b9-0df70cc90d02', 'message_id': '775faa9... └ {'stream': True, 'model': 'google_genai.gemini-2.5-pro', 'messages': [{'role': 'system', 'content': 'when sharing command lin... File "/app/backend/open_webui/utils/middleware.py", line 888, in process_chat_payload raise Exception(f"Error: {e}") Exception: Error: 'list' object has no attribute 'strip' During handling of the above exception, another exception occurred: Traceback (most recent call last): > File "/app/backend/open_webui/main.py", line 1541, in process_chat raise HTTPException( └ <class 'fastapi.exceptions.HTTPException'> fastapi.exceptions.HTTPException: 400: Error: 'list' object has no attribute 'strip' ``` ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-20 00:23:40 -05:00
Author
Owner

@Piste commented on GitHub (Sep 1, 2025):

I understand that the onus for fixing this might be on the author of adaptive_memory_v3 but I also don't think that open webui should let a function crash and let the front end behave like something is going to happen. It just hangs there.

<!-- gh-comment-id:3243242970 --> @Piste commented on GitHub (Sep 1, 2025): I understand that the onus for fixing this might be on the author of adaptive_memory_v3 but I also don't think that open webui should let a function crash and let the front end behave like something is going to happen. It just hangs there.
Author
Owner

@rgaricano commented on GitHub (Sep 1, 2025):

maybe you need a more recent version https://github.com/donbcd/adaptive_memory_owui

<!-- gh-comment-id:3243261332 --> @rgaricano commented on GitHub (Sep 1, 2025): maybe you need a more recent version https://github.com/donbcd/adaptive_memory_owui
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#18179