From 63e38b5554a9749690551d19e43e0bbde3693ea4 Mon Sep 17 00:00:00 2001 From: Jeffrey Tang <810895+jeffreyftang@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:47:33 -0500 Subject: [PATCH] fix: Suppress pydantic warning over model_id field in DeployedModel (#409) --- clients/python/lorax/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clients/python/lorax/types.py b/clients/python/lorax/types.py index f20a222a3..b206907ad 100644 --- a/clients/python/lorax/types.py +++ b/clients/python/lorax/types.py @@ -336,3 +336,6 @@ class StreamResponse(BaseModel): class DeployedModel(BaseModel): model_id: str sha: str + + # Suppress pydantic warning over `model_id` field. + model_config = ConfigDict(protected_namespaces=())