diff --git a/litellm/tests/test_no_client.py b/litellm/tests/test_no_client.py deleted file mode 100644 index 05badddb6..000000000 --- a/litellm/tests/test_no_client.py +++ /dev/null @@ -1,26 +0,0 @@ -#### What this tests #### -# This tests error logging (with custom user functions) for the `completion` + `embedding` endpoints without callbacks (i.e. slack, posthog, etc. not set) -# Requirements: Remove any env keys you have related to slack/posthog/etc. + anthropic api key (cause an exception) - -import sys, os -import traceback - -sys.path.insert( - 0, os.path.abspath("../..") -) # Adds the parent directory to the system path -import litellm -from litellm import embedding, completion - -litellm.set_verbose = True - -model_fallback_list = ["claude-instant-1", "gpt-3.5-turbo", "chatgpt-test"] - -user_message = "Hello, how are you?" -messages = [{"content": user_message, "role": "user"}] - -for model in model_fallback_list: - try: - response = embedding(model="text-embedding-ada-002", input=[user_message]) - response = completion(model=model, messages=messages) - except Exception as e: - print(f"error occurred: {traceback.format_exc()}") diff --git a/litellm/tests/test_proxy_api.py b/litellm/tests/test_proxy_api.py deleted file mode 100644 index c0ce19ab8..000000000 --- a/litellm/tests/test_proxy_api.py +++ /dev/null @@ -1,15 +0,0 @@ -# import sys, os -# import traceback -# sys.path.insert(0, os.path.abspath('../..')) # Adds the parent directory to the system path -# import litellm -# from litellm import embedding, completion - -# litellm.api_base = "https://oai.hconeai.com/v1" -# litellm.headers = {"Helicone-Auth": f"Bearer {os.getenv('HELICONE_API_KEY')}"} - -# response = litellm.completion( -# model="gpt-3.5-turbo", -# messages=[{"role": "user", "content": "how does a court case get to the Supreme Court?"}] -# ) - -# print(response)