mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
add langfuse integration
This commit is contained in:
parent
beac62b8fe
commit
f466c443fe
3 changed files with 90 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue