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 mypy override errors in count_tokens signatures
Julio Quinteros Pro279b4f16cb3c
diff --git a/litellm/llms/gemini/common_utils.py b/litellm/llms/gemini/common_utils.pyindex f99548c2c45..17b9c78123f 100644--- a/litellm/llms/gemini/common_utils.py+++ b/litellm/llms/gemini/common_utils.py@@ -166,7 +166,8 @@ class GoogleAIStudioTokenCounter(BaseTokenCounter):contents: Optional[List[Dict[str, Any]]],deployment: Optional[Dict[str, Any]] = None,request_model: str = "",- **kwargs,+ tools: Optional[List[Dict[str, Any]]] = None,+ system: Optional[Any] = None,) -> Optional[TokenCountResponse]:import copydiff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.pyindex 791878c9700..3c5cbb65437 100644--- a/litellm/llms/vertex_ai/common_utils.py+++ b/litellm/llms/vertex_ai/common_utils.py@@ -1030,7 +1030,8 @@ class VertexAITokenCounter(BaseTokenCounter):contents: Optional[List[Dict[str, Any]]],deployment: Optional[Dict[str, Any]] = None,request_model: str = "",- **kwargs,+ tools: Optional[List[Dict[str, Any]]] = None,+ system: Optional[Any] = None,) -> Optional[TokenCountResponse]:import copy