The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(router.py): fix aembedding type hints
Krrish Dholakiadeff357c923a
diff --git a/litellm/router.py b/litellm/router.pyindex a263d4cca4a..2d180f07637 100644--- a/litellm/router.py+++ b/litellm/router.py@@ -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"] = modelkwargs["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"] = modelkwargs["input"] = input