mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac: ollama embed form data
This commit is contained in:
parent
2341c2e729
commit
a8a0a2655d
1 changed files with 4 additions and 0 deletions
|
|
@ -1020,6 +1020,10 @@ class GenerateEmbedForm(BaseModel):
|
|||
options: Optional[dict] = None
|
||||
keep_alive: Optional[Union[int, str]] = None
|
||||
|
||||
model_config = ConfigDict(
|
||||
extra="allow",
|
||||
)
|
||||
|
||||
|
||||
@router.post("/api/embed")
|
||||
@router.post("/api/embed/{url_idx}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue