mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
7 lines
266 B
Python
7 lines
266 B
Python
import os, litellm
|
|
import dotenv
|
|
dotenv.load_dotenv() # load env variables
|
|
|
|
def set_callbacks():
|
|
if ("LANGUFSE_PUBLIC_KEY" in os.environ and "LANGUFSE_SECRET_KEY" in os.environ) or "LANGFUSE_HOST" in os.environ:
|
|
litellm.success_callback = ["langfuse"]
|