(fix) setting langfuse callbacks

This commit is contained in:
ishaan-jaff 2023-10-23 14:56:27 -07:00
parent 5733b10f04
commit 8dce790829

View file

@ -3,5 +3,5 @@ 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:
if ("LANGFUSE_PUBLIC_KEY" in os.environ and "LANGFUSE_SECRET_KEY" in os.environ) or "LANGFUSE_HOST" in os.environ:
litellm.success_callback = ["langfuse"]