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
_get_file_search_tool_call
Ishaan Jaffded612563dd5
diff --git a/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py b/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.pyindex 723910dbb0c..ca20bce8bfa 100644--- a/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py+++ b/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py@@ -137,6 +137,8 @@ class StandardBuiltInToolCostTracking:return WebSearchOptions(**kwargs.get("web_search_options", {}))if "tools" in kwargs:tools = kwargs.get("tools", [])+ if tools is None:+ return None# Look for web search tool in the tools arrayfor tool in tools:if isinstance(tool, dict):@@ -148,6 +150,8 @@ class StandardBuiltInToolCostTracking:def _get_file_search_tool_call(kwargs: Dict) -> Optional[FileSearchTool]:if "tools" in kwargs:tools = kwargs.get("tools", [])+ if tools is None:+ return None# Look for web search tool in the tools arrayfor tool in tools:if isinstance(tool, dict):