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 python 3 install / usage

Ishaan Jaff447cf5511ddd
diff --git a/litellm/integrations/langfuse/langfuse.py b/litellm/integrations/langfuse/langfuse.py
index 9fb2f86f683..13236b210f9 100644
--- a/litellm/integrations/langfuse/langfuse.py
+++ b/litellm/integrations/langfuse/langfuse.py
@@ -5,7 +5,7 @@ import json
import os
import traceback
from collections.abc import MutableMapping, MutableSequence, MutableSet
-from typing import TYPE_CHECKING, Any, Dict, Optional, cast
+from typing import TYPE_CHECKING, Any, Dict, List, Optional, cast
from packaging.version import Version
from pydantic import BaseModel
@@ -734,7 +734,7 @@ class LangFuseLogger:
return None, None
@staticmethod
- def _get_langfuse_tags(metadata: dict) -> list[str]:
+ def _get_langfuse_tags(metadata: dict) -> List[str]:
try:
return json.loads(metadata.pop("tags", "[]"))
except Exception as e: