mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #16389] issue: embeddings based on OpenAI-compatible APIs are broken #56548
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?
Originally created by @MattBash17 on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16389
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.18
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Embeddings based on remote OpenAI-compatible apis (Mistral, Nvidia NIM, etc) should work
Actual Behavior
No matter what remote OpenAI-compatible endpoint and API key I set, embedding any simple webpage fails. On the top-right of the window, a red label with TypeError: 'NoneType' object is not iterable appears.
Steps to Reproduce
Logs & Screenshots
TypeError: 'NoneType' object is not iterable
2025-08-08 14:33:34.497 | ERROR | open_webui.routers.retrieval:process_web:1652 - 'NoneType' object is not iterable - {}
Traceback (most recent call last):
File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x71cb011389a0>
└ <WorkerThread(AnyIO worker thread, started 125115252590272)>
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x71cabdd796c0>
└ <WorkerThread(AnyIO worker thread, started 125115252590272)>
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
│ │ │ └ ()
│ │ └ functools.partial(<function process_web at 0x71cac2860860>, user=UserModel(id='664a8662-0fbf-4671-8002-c777550d8d1f', name='M...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x71cabd98df00>
File "/app/backend/open_webui/routers/retrieval.py", line 1321, in save_docs_to_vector_db
raise e
File "/app/backend/open_webui/routers/retrieval.py", line 1297, in save_docs_to_vector_db
embeddings = embedding_function(
└ <function get_embedding_function.. at 0x71cabb50b2e0>
File "/app/backend/open_webui/retrieval/utils.py", line 441, in
return lambda query, prefix=None, user=None: generate_multiple(
│ └ <function get_embedding_function..generate_multiple at 0x71cabb509a80>
└ ['GitHub · Where software is built Skip to content Navigation Menu...
File "/app/backend/open_webui/retrieval/utils.py", line 430, in generate_multiple
embeddings.extend(
│ └ <method 'extend' of 'list' objects>
└ []
TypeError: 'NoneType' object is not iterable
2025-08-08 14:33:34.505 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.18.0.1:48106 - "POST /api/v1/retrieval/process/web HTTP/1.1" 400 - {}
Additional Information
No response
@tjbck commented on GitHub (Aug 8, 2025):
Unable to reproduce, keep us updated.