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
test_cost_azure_openai_prompt_caching
Ishaan Jaff6e3b21775f76
diff --git a/tests/local_testing/test_completion_cost.py b/tests/local_testing/test_completion_cost.pyindex 5de92163164..33fc6cfd3af 100644--- a/tests/local_testing/test_completion_cost.py+++ b/tests/local_testing/test_completion_cost.py@@ -1423,7 +1423,9 @@ def test_cost_azure_openai_prompt_caching():print("_expected_cost2", _expected_cost2)print("cost_2", cost_2)- assert cost_2 == _expected_cost2+ assert (+ abs(cost_2 - _expected_cost2) < 1e-5+ ) # Allow for small floating-point differencesdef test_completion_cost_vertex_llama3():