mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 09:01:47 -05:00
[GH-ISSUE #21279] issue: /embeddings endpoint not behaving as expected for list of input strings #122739
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 @lufixSch on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21279
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.7.2
Ollama Version (if applicable)
v0.13.5-rocm
Operating System
Debian 12
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When providing multiple input strings for embeddings to
/api/embeddingsit should return the same number of embeddings.This should data looking like
Actual Behavior
Currently, the example request above only returns one item in the data array independent of the number of strings in the input array. It seems like the strings are somehow concatenated.
From my testing the Ollama API produces the correct output
Actual Output
Steps to Reproduce
Logs & Screenshots
Additional Information
The documentation says the endpoint should be OpenAI compatible. From the OpenAI documentation:
@tjbck commented on GitHub (Feb 10, 2026):
8fd5c06e5b