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]

add search_context_cost_per_1k_calls to model cost map spec

Ishaan Jaff1bdb94a31486
diff --git a/tests/local_testing/test_get_model_info.py b/tests/local_testing/test_get_model_info.py
index d71f3f7c243..f885a61e78d 100644
--- a/tests/local_testing/test_get_model_info.py
+++ b/tests/local_testing/test_get_model_info.py
@@ -518,6 +518,15 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
],
},
},
+ "search_context_cost_per_1k_calls": {
+ "type": "object",
+ "properties": {
+ "low_context": {"type": "number"},
+ "medium_context": {"type": "number"},
+ "high_context": {"type": "number"},
+ },
+ "additionalProperties": False,
+ },
"supported_modalities": {
"type": "array",
"items": {