mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(router.py): fix typing
This commit is contained in:
parent
5488bf4921
commit
38988f030a
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ class Router:
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
model_list: Optional[List[DeploymentTypedDict]] = None,
|
model_list: Optional[List[Union[DeploymentTypedDict, Dict]]] = None,
|
||||||
## CACHING ##
|
## CACHING ##
|
||||||
redis_url: Optional[str] = None,
|
redis_url: Optional[str] = None,
|
||||||
redis_host: Optional[str] = None,
|
redis_host: Optional[str] = None,
|
||||||
|
|
|
@ -26,7 +26,7 @@ model_list = [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
router = litellm.Router(model_list=model_list)
|
router = litellm.Router(model_list=model_list) # type: ignore
|
||||||
|
|
||||||
|
|
||||||
async def _openai_completion():
|
async def _openai_completion():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue