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
fix
Ishaan Jaffer39c1a970a13e
diff --git a/tests/test_litellm/integrations/test_langfuse.py b/tests/test_litellm/integrations/test_langfuse.pyindex b7a2ed50959..b9009d20056 100644--- a/tests/test_litellm/integrations/test_langfuse.py+++ b/tests/test_litellm/integrations/test_langfuse.py@@ -1,12 +1,14 @@-import unittestimport asyncio-from unittest.mock import patch, MagicMock-from typing import Optional-import sys-import osimport datetimeimport json+import os+import sys+import unittest+from typing import Optional+from unittest.mock import MagicMock, patch+import pytest+import litellmfrom litellm.integrations.langfuse import langfuse as langfuse_modulefrom litellm.integrations.langfuse.langfuse import LangFuseLogger@@ -255,6 +257,7 @@ class TestLangfuseUsageDetails(unittest.TestCase):with patch("litellm.integrations.langfuse.langfuse._add_prompt_to_generation_params",side_effect=lambda generation_params, **kwargs: generation_params,+ create=True,) as mock_add_prompt_params:# Create a mock response object with usage information containing None valuesresponse_obj = MagicMock()