mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
support list[str] | str as input
This commit is contained in:
parent
ad31bd51fd
commit
c748d33192
@ -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 New Issue
Block a user