[PR #6104] [MERGED] fix: ollama embed support list[str] or str on input #8616

Closed
opened 2025-11-11 18:01:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: hotfix/ollama-embed


📝 Commits (1)

  • c748d33 support 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/6104 **Author:** [@Peter-De-Ath](https://github.com/Peter-De-Ath) **Created:** 10/10/2024 **Status:** ✅ Merged **Merged:** 10/10/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `hotfix/ollama-embed` --- ### 📝 Commits (1) - [`c748d33`](https://github.com/open-webui/open-webui/commit/c748d3319224a00bcd39fa1bd515855700abedd4) support list[str] | str as input ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/apps/ollama/main.py` (+1 -1) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:01:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#8616