mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
Fix: generate endpoint form model
According to the [Ollama documentation] the parameter `context` should be an array of int, if specified.
This commit is contained in:
parent
e35be175fc
commit
b596b8f0cb
@ -692,7 +692,7 @@ class GenerateCompletionForm(BaseModel):
|
||||
options: Optional[dict] = None
|
||||
system: Optional[str] = None
|
||||
template: Optional[str] = None
|
||||
context: Optional[str] = None
|
||||
context: Optional[list[int]] = None
|
||||
stream: Optional[bool] = True
|
||||
raw: Optional[bool] = None
|
||||
keep_alive: Optional[Union[int, str]] = None
|
||||
|
Loading…
Reference in New Issue
Block a user