From b51d98c6e3c408fec3318aa5e8fee12efae08826 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 6 Jan 2024 13:49:15 +0530 Subject: [PATCH] docs: fix pip install litellm[proxy] instruction --- README.md | 2 +- docs/my-website/docs/index.md | 2 +- docs/my-website/docs/proxy/configs.md | 2 +- docs/my-website/docs/proxy/quick_start.md | 6 ------ docs/my-website/docs/proxy_server.md | 2 +- docs/my-website/docs/secret.md | 2 +- docs/my-website/docs/simple_proxy_old_doc.md | 2 +- docs/my-website/src/pages/index.md | 2 +- litellm/proxy/proxy_server.py | 2 +- 9 files changed, 8 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index ff9900dda..14353b87e 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ The proxy provides: ## Quick Start Proxy - CLI ```shell -pip install litellm[proxy] +pip install 'litellm[proxy]' ``` ### Step 1: Start litellm proxy diff --git a/docs/my-website/docs/index.md b/docs/my-website/docs/index.md index db99b62b4..f6bd7bc42 100644 --- a/docs/my-website/docs/index.md +++ b/docs/my-website/docs/index.md @@ -411,7 +411,7 @@ The proxy provides: ### Quick Start Proxy - CLI ```shell -pip install litellm[proxy] +pip install 'litellm[proxy]' ``` #### Step 1: Start litellm proxy diff --git a/docs/my-website/docs/proxy/configs.md b/docs/my-website/docs/proxy/configs.md index b6db7308b..9b1834027 100644 --- a/docs/my-website/docs/proxy/configs.md +++ b/docs/my-website/docs/proxy/configs.md @@ -251,7 +251,7 @@ s/o to [@David Manouchehri](https://www.linkedin.com/in/davidmanouchehri/) for h 1. Install Proxy dependencies ```bash -$ pip install litellm[proxy] litellm[extra_proxy] +$ pip install 'litellm[proxy]' 'litellm[extra_proxy]' ``` 2. Save Azure details in your environment diff --git a/docs/my-website/docs/proxy/quick_start.md b/docs/my-website/docs/proxy/quick_start.md index daf948cc9..f8ff95004 100644 --- a/docs/my-website/docs/proxy/quick_start.md +++ b/docs/my-website/docs/proxy/quick_start.md @@ -19,12 +19,6 @@ LiteLLM Server manages: View all the supported args for the Proxy CLI [here](https://docs.litellm.ai/docs/simple_proxy#proxy-cli-arguments) -```shell -$ pip install litellm[proxy] -``` - -If this fails try running - ```shell $ pip install 'litellm[proxy]' ``` diff --git a/docs/my-website/docs/proxy_server.md b/docs/my-website/docs/proxy_server.md index 200a92b95..9c335f2a2 100644 --- a/docs/my-website/docs/proxy_server.md +++ b/docs/my-website/docs/proxy_server.md @@ -13,7 +13,7 @@ Docs outdated. New docs 👉 [here](./simple_proxy) ## Usage ```shell -pip install litellm[proxy] +pip install 'litellm[proxy]' ``` ```shell $ litellm --model ollama/codellama diff --git a/docs/my-website/docs/secret.md b/docs/my-website/docs/secret.md index 7234a8544..2f147af55 100644 --- a/docs/my-website/docs/secret.md +++ b/docs/my-website/docs/secret.md @@ -40,7 +40,7 @@ litellm.get_secret("your-test-key") 1. Install Proxy dependencies ```bash -pip install litellm[proxy] litellm[extra_proxy] +pip install 'litellm[proxy]' 'litellm[extra_proxy]' ``` 2. Save Azure details in your environment diff --git a/docs/my-website/docs/simple_proxy_old_doc.md b/docs/my-website/docs/simple_proxy_old_doc.md index 6b65037ff..6bff69eb3 100644 --- a/docs/my-website/docs/simple_proxy_old_doc.md +++ b/docs/my-website/docs/simple_proxy_old_doc.md @@ -16,7 +16,7 @@ LiteLLM Server manages: View all the supported args for the Proxy CLI [here](https://docs.litellm.ai/docs/simple_proxy#proxy-cli-arguments) ```shell -$ pip install litellm[proxy] +$ pip install 'litellm[proxy]' ``` ```shell diff --git a/docs/my-website/src/pages/index.md b/docs/my-website/src/pages/index.md index b88ed7ce5..1b13b9b2b 100644 --- a/docs/my-website/src/pages/index.md +++ b/docs/my-website/src/pages/index.md @@ -390,7 +390,7 @@ The proxy provides: ### Quick Start Proxy - CLI ```shell -pip install litellm[proxy] +pip install 'litellm[proxy]' ``` #### Step 1: Start litellm proxy diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index fdfbe7624..f12fe5b6b 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -20,7 +20,7 @@ try: import yaml import orjson except ImportError as e: - raise ImportError(f"Missing dependency {e}. Run `pip install litellm[proxy]`") + raise ImportError(f"Missing dependency {e}. Run `pip install 'litellm[proxy]'`") import random