Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(pyproject.toml): remove 'click' and 'load-dotenv' from litellm sdk dep's #7354

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions litellm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@
from litellm.types.utils import StandardKeyGenerationConfig, LlmProviders
from litellm.integrations.custom_logger import CustomLogger
import httpx
import dotenv
from enum import Enum

litellm_mode = os.getenv("LITELLM_MODE", "DEV") # "PRODUCTION", "DEV"
if litellm_mode == "DEV":
dotenv.load_dotenv()
#############################################
if set_verbose == True:
_turn_on_debug()
Expand Down Expand Up @@ -1177,7 +1173,19 @@ def add_known_models():
MockException,
)
from .budget_manager import BudgetManager
from .proxy.proxy_cli import run_server


def run_server(*args, **kwargs):
try:
from .proxy.proxy_cli import run_server as proxy_run_server

return proxy_run_server(*args, **kwargs)
except ImportError:
raise ImportError(
"Please install the required dependencies by running `pip install litellm[proxy]`"
)


from .router import Router
from .assistants.main import *
from .batches.main import *
Expand Down
43 changes: 0 additions & 43 deletions litellm/deprecated_litellm_server/.env.template

This file was deleted.

10 changes: 0 additions & 10 deletions litellm/deprecated_litellm_server/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions litellm/deprecated_litellm_server/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions litellm/deprecated_litellm_server/__init__.py

This file was deleted.

193 changes: 0 additions & 193 deletions litellm/deprecated_litellm_server/main.py

This file was deleted.

7 changes: 0 additions & 7 deletions litellm/deprecated_litellm_server/requirements.txt

This file was deleted.

85 changes: 0 additions & 85 deletions litellm/deprecated_litellm_server/server_utils.py

This file was deleted.

1 change: 0 additions & 1 deletion litellm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
cast,
)

import dotenv
import httpx
import openai
import tiktoken
Expand Down
Loading
Loading