mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(router.py): fix aembedding type hints
Fixes https://github.com/BerriAI/litellm/issues/5383
This commit is contained in:
parent
adcf1fc53d
commit
c558648180
1 changed files with 2 additions and 2 deletions
|
@ -1930,7 +1930,7 @@ class Router:
|
|||
input: Union[str, List],
|
||||
is_async: Optional[bool] = False,
|
||||
**kwargs,
|
||||
) -> Union[List[float], None]:
|
||||
) -> litellm.EmbeddingResponse:
|
||||
try:
|
||||
kwargs["model"] = model
|
||||
kwargs["input"] = input
|
||||
|
@ -2018,7 +2018,7 @@ class Router:
|
|||
input: Union[str, List],
|
||||
is_async: Optional[bool] = True,
|
||||
**kwargs,
|
||||
) -> Union[List[float], None]:
|
||||
) -> litellm.EmbeddingResponse:
|
||||
try:
|
||||
kwargs["model"] = model
|
||||
kwargs["input"] = input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue