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
Remove temporary test files
Cole McIntoshae854e6d4ec8
diff --git a/test_script.py b/test_script.pydeleted file mode 100644index be44d11801f..00000000000--- a/test_script.py+++ /dev/null@@ -1,25 +0,0 @@-import json--mistral_model_cost_map = json.load(open("model_prices_and_context_window.json"))--for model, model_info in mistral_model_cost_map.items():- if (- "bedrock" in model_info.get("litellm_provider")- and model_info.get("mode") == "chat"- and any(- m in model- for m in [- "mistral.mistral-large-2402-v1:0",- "mistral.mistral-small-2402-v1:0",- ]- )- ):- """- Update all mistral models to supports_response_schema- """- del model_info["supports_tool_choice"]- print(f"Updated {model} to support response schema")--json.dump(- mistral_model_cost_map, open("model_prices_and_context_window.json", "w"), indent=4-)diff --git a/test_url_encoding.py b/test_url_encoding.pydeleted file mode 100644index c3b1a6e205c..00000000000--- a/test_url_encoding.py+++ /dev/null@@ -1,31 +0,0 @@-# Test URL encoding handling for emails with + characters-import re-from urllib.parse import unquote--def test_user_id_parsing():- # Simulate the raw query string that would come from the URL- # When user calls: http://0.0.0.0:4000/user/[email protected]- # The query string would be: [email protected]-- test_cases = [- "[email protected]",- "user_id=machine-user%[email protected]", # URL encoded +- "[email protected]",- "[email protected]&other_param=value"- ]-- for query_string in test_cases:- print(f"\nTesting query string: {query_string}")-- if 'user_id=' in query_string:- match = re.search(r'user_id=([^&]*)', query_string)- if match:- raw_user_id = unquote(match.group(1))- print(f"Extracted user_id: {raw_user_id}")- else:- print("No match found")- else:- print("user_id not found in query string")--if __name__ == "__main__":- test_user_id_parsing()\ No newline at end of file