diff --git a/docs/my-website/docs/index.md b/docs/my-website/docs/index.md index 363e5d2775b..a90e098cc08 100644 --- a/docs/my-website/docs/index.md +++ b/docs/my-website/docs/index.md @@ -309,75 +309,6 @@ print("Cost for completion call with gpt-3.5-turbo: ", f"${float(cost):.10f}") Cost for completion call with gpt-3.5-turbo: $0.0000775000 ``` -## LiteLLM API -The LiteLLM API allows you to access LLMs you might not have access to (example Claude-2) - - - - -```python -import os -from litellm import completion - -# use the LiteLLM API Key -os.environ["ANTHROPIC_API_KEY"] = "your-api-key" - -messages = [{ "content": "Hello, how are you?","role": "user"}] - -response = completion(model="togethercomputer/falcon-40b-instruct", messages=messages) -print(response) -``` - - - -```python -import os -from litellm import completion - -# use the LiteLLM API Key -os.environ["OPENAI_API_KEY"] = "your-api-key" - -messages = [{ "content": "Hello, how are you?","role": "user"}] - -response = completion(model="gpt-4", messages=messages) -print(response) -``` - - - -```python -import os -from litellm import completion - -# use the LiteLLM API Key -os.environ["TOGETHERAI_API_KEY"] = "your-api-key" - -messages = [{ "content": "Hello, how are you?","role": "user"}] - -response = completion(model="togethercomputer/llama-2-70b-chat", messages=messages) -print(response) -``` - - - - -```python -import os -from litellm import completion - -# use the LiteLLM API Key -os.environ["TOGETHERAI_API_KEY"] = "your-api-key" - -messages = [{ "content": "Hello, how are you?","role": "user"}] - -response = completion(model="togethercomputer/falcon-40b-instruct", messages=messages) -print(response) -``` - - - -👉 See all supported providers on [LiteLLM API](./proxy.md) - Need a dedicated key? Email us @ krrish@berri.ai diff --git a/litellm/__pycache__/utils.cpython-311.pyc b/litellm/__pycache__/utils.cpython-311.pyc index 2ee31d60910..70960990d94 100644 Binary files a/litellm/__pycache__/utils.cpython-311.pyc and b/litellm/__pycache__/utils.cpython-311.pyc differ diff --git a/pyproject.toml b/pyproject.toml index 7f2dc47e120..31a149c2158 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "litellm" -version = "0.5.004" +version = "0.5.0" description = "Library to easily interface with LLM API providers" authors = ["BerriAI"] license = "MIT License"