mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #6104] [MERGED] fix: ollama embed support list[str] or str on input #8616
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/6104
Author: @Peter-De-Ath
Created: 10/10/2024
Status: ✅ Merged
Merged: 10/10/2024
Merged by: @tjbck
Base:
dev← Head:hotfix/ollama-embed📝 Commits (1)
c748d33support list[str] | str as input📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/apps/ollama/main.py(+1 -1)📄 Description
Fixed
/ollama/api/embed
{"detail":[{"type":"list_type","loc":["body","input"],"msg":"Input should be a valid list","input":"some text"}]}
should support both list of string and a string.
always returns
{"embeddings: [[]]}as direct to ollama🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.