From f3d8445ff14c334c3c75924072cb35194408f408 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 30 Aug 2023 09:55:45 -0700 Subject: [PATCH] updates --- litellm/__pycache__/utils.cpython-311.pyc | Bin 75945 -> 75941 bytes litellm/tests/test_completion.py | 57 +++++++++--------- .../tests/test_litedebugger_integration.py | 12 +++- pyproject.toml | 2 +- 4 files changed, 38 insertions(+), 33 deletions(-) diff --git a/litellm/__pycache__/utils.cpython-311.pyc b/litellm/__pycache__/utils.cpython-311.pyc index b64c5c73240a804f9b690c45cf460523a8c32362..ed2cdb3b988b30fbdf3c0320beab8960d76a46f5 100644 GIT binary patch delta 49 zcmZ2^k!9&c7T)E&yj%=GFsb-`%AAe78$B5tH}Cf>;b63zY!YP8c0t(wsesJp+8~{4 E0If|CiU0rr delta 53 zcmZ2_k!9sY7T)E&yj%=GkP!JkWx__@jh>7}oA-N`a4 ensure no logs are created +response = completion(model="claude-instant-1", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}]) +# print(f"response: {response}") + + litellm.use_client = True user_message = "Hello, how are you?" messages = [{ "content": user_message,"role": "user"}] -# Test 1: On completion call +# Test 2: On completion call response = completion(model="claude-instant-1", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}]) # print(f"response: {response}") -# # Test 2: On embedding call +# Test 3: On embedding call response = embedding(model="text-embedding-ada-002", input=["sample text"]) # print(f"response: {response}") -# # Test 3: On streaming completion call +# Test 4: On streaming completion call response = completion(model="replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781", messages=[{"role": "user", "content": "Hi 👋 - i'm openai"}], stream=True) print(f"response: {response}") \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 3501c4bed31..8eb53493cd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "litellm" -version = "0.1.506" +version = "0.1.507" description = "Library to easily interface with LLM API providers" authors = ["BerriAI"] license = "MIT License"