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
Fabricio Ceschina30fd5c2ad59
diff --git a/litellm/integrations/langfuse/langfuse.py b/litellm/integrations/langfuse/langfuse.pyindex 17e15e0b03c..001e79cf802 100644--- a/litellm/integrations/langfuse/langfuse.py+++ b/litellm/integrations/langfuse/langfuse.py@@ -642,7 +642,7 @@ class LangFuseLogger:generation_id = Noneusage = None- usage_details = None+ usage_details : Optional[LangfuseUsageDetails] = Noneif response_obj is not None:if (hasattr(response_obj, "id")