mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
with prompt layer test
This commit is contained in:
parent
7d99e09a4a
commit
b2e72e52e4
3 changed files with 63 additions and 15 deletions
31
litellm/tests/test_promptlayer_integration.py
Normal file
31
litellm/tests/test_promptlayer_integration.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
# #### What this tests ####
|
||||
# # This tests if logging to the llmonitor integration actually works
|
||||
# # Adds the parent directory to the system path
|
||||
# import sys
|
||||
# import os
|
||||
|
||||
# sys.path.insert(0, os.path.abspath('../..'))
|
||||
|
||||
# from litellm import completion, embedding
|
||||
# import litellm
|
||||
|
||||
# litellm.success_callback = ["promptlayer"]
|
||||
|
||||
|
||||
# litellm.set_verbose = True
|
||||
|
||||
|
||||
# def test_chat_openai():
|
||||
# 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