Removed config dict type definition

This commit is contained in:
lj 2024-05-17 10:39:00 +08:00
parent 7c31eccdc2
commit f3d0f003fb
No known key found for this signature in database
5 changed files with 25 additions and 25 deletions

View file

@ -332,7 +332,7 @@ class HiddenParams(OpenAIObject):
model_id: Optional[str] = None # used in Router for individual deployments
api_base: Optional[str] = None # returns api base used for making completion call
model_config: ConfigDict = ConfigDict(extra="allow", protected_namespaces=())
model_config = ConfigDict(extra="allow", protected_namespaces=())
def get(self, key, default=None):
# Custom .get() method to access attributes with a default value if the attribute doesn't exist