mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +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],
|
input: Union[str, List],
|
||||||
is_async: Optional[bool] = False,
|
is_async: Optional[bool] = False,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> Union[List[float], None]:
|
) -> litellm.EmbeddingResponse:
|
||||||
try:
|
try:
|
||||||
kwargs["model"] = model
|
kwargs["model"] = model
|
||||||
kwargs["input"] = input
|
kwargs["input"] = input
|
||||||
|
@ -2018,7 +2018,7 @@ class Router:
|
||||||
input: Union[str, List],
|
input: Union[str, List],
|
||||||
is_async: Optional[bool] = True,
|
is_async: Optional[bool] = True,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> Union[List[float], None]:
|
) -> litellm.EmbeddingResponse:
|
||||||
try:
|
try:
|
||||||
kwargs["model"] = model
|
kwargs["model"] = model
|
||||||
kwargs["input"] = input
|
kwargs["input"] = input
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue