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:
Timothy Jaeryang Baek 2024-10-10 15:10:39 -07:00 committed by GitHub
commit 4adc57fd34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -547,7 +547,7 @@ class GenerateEmbeddingsForm(BaseModel):
class GenerateEmbedForm(BaseModel):
model: str
input: list[str]
input: list[str]|str
truncate: Optional[bool] = None
options: Optional[dict] = None
keep_alive: Optional[Union[int, str]] = None