{"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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.