add langfuse integration

This commit is contained in:
ishaan-jaff 2023-08-31 11:04:17 -07:00
parent beac62b8fe
commit f466c443fe
3 changed files with 90 additions and 2 deletions

View file

@ -28,4 +28,20 @@
# except Exception as e:
# print(e)
# # test_chat_openai()
# def test_chat_openai():
# litellm.success_callback = ["langfuse"]
# try:
# response = completion(model="gpt-3.5-turbo",
# messages=[{
# "role": "user",
# "content": "Hi 👋 - i'm openai"
# }])
# print(response)
# except Exception as e:
# print(e)
# test_chat_openai()