From 4b8d150ceb85298931cb333e2c00c7ca5a1c1e62 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Tue, 25 Jun 2024 10:10:26 +0200 Subject: [PATCH] Update clients/python/text_generation/types.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniƫl de Kok --- clients/python/text_generation/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clients/python/text_generation/types.py b/clients/python/text_generation/types.py index 92f229ce..497468d9 100644 --- a/clients/python/text_generation/types.py +++ b/clients/python/text_generation/types.py @@ -452,6 +452,9 @@ class StreamResponse(BaseModel): # Inference API currently deployed model class DeployedModel(BaseModel): + # Disable warning for use of `model_` prefix in `model_id`. Be mindful about adding members + # with model_ prefixes, since this disables guardrails for colliding fields: + # https://github.com/pydantic/pydantic/issues/9177 model_config = ConfigDict(protected_namespaces=()) model_id: str sha: str