Skip to content

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]

test_get_cost_for_built_in_tools_file_search

Ishaan Jaff04e6ad7ceec7
diff --git a/tests/litellm/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py b/tests/litellm/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py
index 0d6bcb7cce0..e3b9bc15b6d 100644
--- a/tests/litellm/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py
+++ b/tests/litellm/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py
@@ -99,6 +99,9 @@ def test_get_cost_for_built_in_tools_web_search():
def test_get_cost_for_built_in_tools_file_search():
+ """
+ Test that the cost for a file search is 0.00 when no response object is provided
+ """
model = "gpt-4"
standard_built_in_tools_params = StandardBuiltInToolsParams(
file_search=FileSearchTool(type="file_search")
@@ -110,4 +113,4 @@ def test_get_cost_for_built_in_tools_file_search():
standard_built_in_tools_params=standard_built_in_tools_params,
)
- assert cost == 0.0025
+ assert cost == 0.00