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 lint errors with LangfuseUsageDetails again
Fabricio Ceschin90c54d688a4b
diff --git a/litellm/integrations/langfuse/langfuse.py b/litellm/integrations/langfuse/langfuse.pyindex 001e79cf802..a98771387c0 100644--- a/litellm/integrations/langfuse/langfuse.py+++ b/litellm/integrations/langfuse/langfuse.py@@ -659,7 +659,7 @@ class LangFuseLogger:"completion_tokens": _usage_obj.completion_tokens,"total_cost": cost if self._supports_costs() else None,}- usage_details : Optional[LangfuseUsageDetails] = {+ usage_details = {"input": _usage_obj.prompt_tokens,"output": _usage_obj.completion_tokens,"cache_creation_input_tokens": _usage_obj.get('cache_creation_input_tokens', 0),