mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-30 11:11:35 +00:00
API: Add default for backend in model load request
Should be None so pydantic doesn't complain. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,7 @@ class ModelLoadRequest(BaseModel):
|
|||||||
# Config arguments
|
# Config arguments
|
||||||
backend: Optional[str] = Field(
|
backend: Optional[str] = Field(
|
||||||
description="Backend to use",
|
description="Backend to use",
|
||||||
|
default=None,
|
||||||
)
|
)
|
||||||
max_seq_len: Optional[int] = Field(
|
max_seq_len: Optional[int] = Field(
|
||||||
description="Leave this blank to use the model's base sequence length",
|
description="Leave this blank to use the model's base sequence length",
|
||||||
|
|||||||
Reference in New Issue
Block a user