From 4c980cb161967b1e37c1a235ebf2918dcc859a58 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 15 Nov 2023 00:10:22 -0800 Subject: [PATCH 1/3] need to re-attempt backoff and yaml imports if the first import attempt fails. not sure which import is missing from requirements --- litellm/proxy/proxy_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 61c24739398..bc402e0ac0f 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -39,6 +39,8 @@ except ImportError: import tomli as tomllib import appdirs import tomli_w + import backoff + import yaml import random From 7cf18466544e0de9945fa97626d79f3648e17408 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 15 Nov 2023 10:38:05 -0800 Subject: [PATCH 2/3] Ensure the imports needed by proxy_server are in requirements.txt to start with --- requirements.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 6591bb8527f..5e1bda87a2d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,13 @@ litellm openai fastapi +tomli +appdirs +tomli_w +backoff +yaml uvicorn boto3 litellm -redis \ No newline at end of file +redis +yaml From 8e4349d3dce0369f80c0998f3f48db0d22bf78f9 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 15 Nov 2023 10:46:26 -0800 Subject: [PATCH 3/3] Correct pypi package name for yaml --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5e1bda87a2d..d9b22b661dd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,9 +5,9 @@ tomli appdirs tomli_w backoff -yaml +pyyaml uvicorn boto3 litellm redis -yaml +pyyaml