From f1a6fdb90007e16f9b04869f0abd38e2fec734f7 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 19 Jun 2024 21:33:39 -0400 Subject: [PATCH] corrected Pydantic warning. --- clients/python/text_generation/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/python/text_generation/types.py b/clients/python/text_generation/types.py index eb872ee6..92f229ce 100644 --- a/clients/python/text_generation/types.py +++ b/clients/python/text_generation/types.py @@ -1,5 +1,5 @@ from enum import Enum -from pydantic import BaseModel, field_validator +from pydantic import BaseModel, field_validator, ConfigDict from typing import Optional, List, Union, Any from text_generation.errors import ValidationError @@ -452,5 +452,6 @@ class StreamResponse(BaseModel): # Inference API currently deployed model class DeployedModel(BaseModel): + model_config = ConfigDict(protected_namespaces=()) model_id: str sha: str