litellm-mirror/litellm/proxy/tests/test_pass_through_langfuse.py
2024-06-28 17:28:21 -07:00

14 lines
338 B
Python

from langfuse import Langfuse
langfuse = Langfuse(
host="http://localhost:4000",
public_key="anything",
secret_key="anything",
)
print("sending langfuse trace request")
trace = langfuse.trace(name="test-trace-litellm-proxy-passthrough")
print("flushing langfuse request")
langfuse.flush()
print("flushed langfuse request")