forked from phoenix/litellm-mirror
feat(ui): add models via ui
adds ability to add models via ui to the proxy. also fixes additional bugs around new /model/new endpoint
This commit is contained in:
parent
2472311a3f
commit
e3c2bdef4d
34 changed files with 333 additions and 108 deletions
|
@ -110,6 +110,11 @@ class Deployment(BaseModel):
|
|||
litellm_params: LiteLLM_Params
|
||||
model_info: ModelInfo
|
||||
|
||||
def __init__(self, model_info: Optional[ModelInfo] = None, **params):
|
||||
if model_info is None:
|
||||
model_info = ModelInfo()
|
||||
super().__init__(model_info=model_info, **params)
|
||||
|
||||
def to_json(self, **kwargs):
|
||||
try:
|
||||
return self.model_dump(**kwargs) # noqa
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue