mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
Merge 6878adca2b into f285229b51
This commit is contained in:
commit
3051a39ad2
2 changed files with 7 additions and 3 deletions
|
|
@ -9513,7 +9513,12 @@ class Router:
|
|||
if isinstance(v, str) and v.startswith("os.environ/"):
|
||||
_litellm_params[k] = get_secret(v)
|
||||
|
||||
_model_info: dict = model.pop("model_info", {})
|
||||
_raw_model_info = model.pop("model_info", {})
|
||||
_model_info: dict = (
|
||||
_raw_model_info.model_dump(exclude_none=True)
|
||||
if hasattr(_raw_model_info, "model_dump")
|
||||
else (_raw_model_info or {})
|
||||
)
|
||||
|
||||
declared_id = None if _model_info.get("id") is None else str(_model_info["id"])
|
||||
|
||||
|
|
|
|||
|
|
@ -638,8 +638,7 @@ class LiteLLMParamsTypedDict(TypedDict, total=False):
|
|||
class DeploymentTypedDict(TypedDict, total=False):
|
||||
model_name: Required[str]
|
||||
litellm_params: Required[LiteLLMParamsTypedDict]
|
||||
model_info: dict
|
||||
|
||||
model_info: dict | ModelInfo
|
||||
|
||||
SPECIAL_MODEL_INFO_PARAMS = tuple(MirroredPricingParams.model_fields)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue