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:
Hugo Haldi 2024-10-27 13:41:50 +01:00 committed by GitHub
parent e35be175fc
commit b596b8f0cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -692,7 +692,7 @@ class GenerateCompletionForm(BaseModel):
options: Optional[dict] = None options: Optional[dict] = None
system: Optional[str] = None system: Optional[str] = None
template: Optional[str] = None template: Optional[str] = None
context: Optional[str] = None context: Optional[list[int]] = None
stream: Optional[bool] = True stream: Optional[bool] = True
raw: Optional[bool] = None raw: Optional[bool] = None
keep_alive: Optional[Union[int, str]] = None keep_alive: Optional[Union[int, str]] = None