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
fixing mistral model deprecation, cloud zero transform bug
yuneng-jiangc41459c8e333
diff --git a/litellm/integrations/cloudzero/transform.py b/litellm/integrations/cloudzero/transform.pyindex c36833a6dbf..b40a71da1c6 100644--- a/litellm/integrations/cloudzero/transform.py+++ b/litellm/integrations/cloudzero/transform.py@@ -141,7 +141,7 @@ class CBFTransformer:# Required CBF fields'time/usage_start': usage_date.isoformat() if usage_date else None, # Required: ISO-formatted UTC datetime'cost/cost': float(row.get('spend', 0.0)), # Required: billed cost- 'resource/id': model, # Send model name+ 'resource/id': resource_id, # CZRN (CloudZero Resource Name)# Usage metrics for token consumption'usage/amount': total_tokens, # Numeric value of tokens consumeddiff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.pyindex c322db157e9..26a93343caf 100644--- a/tests/local_testing/test_completion.py+++ b/tests/local_testing/test_completion.py@@ -2189,7 +2189,7 @@ def test_completion_openrouter1():try:litellm.set_verbose = Trueresponse = completion(- model="openrouter/mistralai/mistral-tiny",+ model="openrouter/mistralai/ministral-8b",messages=messages,max_tokens=5,)