protected_namespaces fixed for model_info

This commit is contained in:
CyanideByte 2024-04-27 13:08:45 -07:00
parent 463b1aff24
commit e1786848cb
2 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,9 @@ class DBModel(BaseModel):
model_info: dict
litellm_params: dict
class Config:
protected_namespaces = ()
@pytest.mark.asyncio
async def test_delete_deployment():

View file

@ -202,12 +202,18 @@ class updateDeployment(BaseModel):
litellm_params: Optional[updateLiteLLMParams] = None
model_info: Optional[ModelInfo] = None
class Config:
protected_namespaces = ()
class Deployment(BaseModel):
model_name: str
litellm_params: LiteLLM_Params
model_info: ModelInfo
class Config:
protected_namespaces = ()
def __init__(
self,
model_name: str,