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]

fix lf logging

Ishaan Jaffereb417ed774f8
diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion.json
index 74106b19b37..5f62b828119 100644
--- a/tests/logging_callback_tests/langfuse_expected_request_body/completion.json
+++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion.json
@@ -37,7 +37,11 @@
"cache_key": null,
"api_base": "https://api.openai.com",
"response_cost": 3.5e-05,
- "additional_headers": {}
+ "additional_headers": {},
+ "litellm_overhead_time_ms": null,
+ "batch_models": null,
+ "litellm_model_name": "gpt-3.5-turbo",
+ "usage_object": null
},
"litellm_response_cost": 3.5e-05,
"cache_hit": false,
@@ -70,10 +74,11 @@
"totalCost": 3.5e-05
},
"usageDetails": {
- "cache_creation_input_tokens": 0,
- "cache_read_input_tokens": 0,
"input": 10,
- "output": 20
+ "output": 20,
+ "total": 30,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0
},
"traceId": "litellm-test-6a51ae70-a4e7-499e-afcd-dce2a3b31850"
},