mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge pull request #6104 from Peter-De-Ath/hotfix/ollama-embed
fix: ollama embed support list[str] or str on input
This commit is contained in:
commit
4adc57fd34
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ class GenerateEmbeddingsForm(BaseModel):
|
||||||
|
|
||||||
class GenerateEmbedForm(BaseModel):
|
class GenerateEmbedForm(BaseModel):
|
||||||
model: str
|
model: str
|
||||||
input: list[str]
|
input: list[str]|str
|
||||||
truncate: Optional[bool] = None
|
truncate: Optional[bool] = None
|
||||||
options: Optional[dict] = None
|
options: Optional[dict] = None
|
||||||
keep_alive: Optional[Union[int, str]] = None
|
keep_alive: Optional[Union[int, str]] = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue