From 8996dc7b022ac502a8b838e561cea224d61a12ab Mon Sep 17 00:00:00 2001 From: kingbri <8082010+kingbri1@users.noreply.github.com> Date: Mon, 12 May 2025 09:39:34 -0400 Subject: [PATCH] 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> --- endpoints/core/types/model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/endpoints/core/types/model.py b/endpoints/core/types/model.py index a182913..e01b603 100644 --- a/endpoints/core/types/model.py +++ b/endpoints/core/types/model.py @@ -83,6 +83,7 @@ class ModelLoadRequest(BaseModel): # Config arguments backend: Optional[str] = Field( description="Backend to use", + default=None, ) max_seq_len: Optional[int] = Field( description="Leave this blank to use the model's base sequence length",