mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
bumping version
This commit is contained in:
parent
2492ed23d1
commit
f149945d91
2 changed files with 20 additions and 20 deletions
|
@ -1,27 +1,27 @@
|
||||||
#### What this tests ####
|
# #### What this tests ####
|
||||||
# This tests if logging to the helicone integration actually works
|
# # This tests if logging to the helicone integration actually works
|
||||||
# pytest mistakes intentional bad calls as failed tests -> [TODO] fix this
|
# # pytest mistakes intentional bad calls as failed tests -> [TODO] fix this
|
||||||
import sys, os
|
# import sys, os
|
||||||
import traceback
|
# import traceback
|
||||||
import pytest
|
# import pytest
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('../..')) # Adds the parent directory to the system path
|
# sys.path.insert(0, os.path.abspath('../..')) # Adds the parent directory to the system path
|
||||||
import litellm
|
# import litellm
|
||||||
from litellm import embedding, completion
|
# from litellm import embedding, completion
|
||||||
|
|
||||||
litellm.success_callback = ["supabase"]
|
# litellm.success_callback = ["supabase"]
|
||||||
litellm.failure_callback = ["supabase"]
|
# litellm.failure_callback = ["supabase"]
|
||||||
|
|
||||||
litellm.modify_integration("supabase",{"table_name": "litellm_logs"})
|
# litellm.modify_integration("supabase",{"table_name": "litellm_logs"})
|
||||||
|
|
||||||
litellm.set_verbose = True
|
# litellm.set_verbose = True
|
||||||
|
|
||||||
user_message = "Hello, how are you?"
|
# user_message = "Hello, how are you?"
|
||||||
messages = [{ "content": user_message,"role": "user"}]
|
# messages = [{ "content": user_message,"role": "user"}]
|
||||||
|
|
||||||
|
|
||||||
#openai call
|
# #openai call
|
||||||
response = completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}])
|
# response = completion(model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}])
|
||||||
|
|
||||||
#bad request call
|
# #bad request call
|
||||||
response = completion(model="chatgpt-test", messages=[{"role": "user", "content": "Hi 👋 - i'm a bad request"}])
|
# response = completion(model="chatgpt-test", messages=[{"role": "user", "content": "Hi 👋 - i'm a bad request"}])
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "litellm"
|
name = "litellm"
|
||||||
version = "0.1.346"
|
version = "0.1.347"
|
||||||
description = "Library to easily interface with LLM API providers"
|
description = "Library to easily interface with LLM API providers"
|
||||||
authors = ["BerriAI"]
|
authors = ["BerriAI"]
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue