support list[str] | str as input

This commit is contained in:
Peter De-Ath 2024-10-10 22:41:57 +01:00
parent ad31bd51fd
commit c748d33192

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