Skip to content

fix: add litellm[proxy] dependency to fix missing fastapi on fresh install#1737

Open
RemyLoveLogicAI wants to merge 1 commit into
agent0ai:readyfrom
RemyLoveLogicAI:dev-workflow/1728-add-litellm-proxy-dep
Open

fix: add litellm[proxy] dependency to fix missing fastapi on fresh install#1737
RemyLoveLogicAI wants to merge 1 commit into
agent0ai:readyfrom
RemyLoveLogicAI:dev-workflow/1728-add-litellm-proxy-dep

Conversation

@RemyLoveLogicAI

Copy link
Copy Markdown

Issue

Fixes #1728

After installing A0 2.0/2.1 from a fresh environment, users encounter:

litellm.exceptions.APIConnectionError: APIConnectionError: DeepseekException - Missing dependency No module named 'fastapi'. Run `pip install 'litellm[proxy]'`

Root Cause

The litellm package lists fastapi as an optional dependency under the [proxy] extra. Without fastapi installed, litellm cannot make HTTP connections and raises APIConnectionError.

Fix

Change the litellm dependency in requirements.txt from:

-litellm==1.88.1  # CVE-2026-42271 fix: patched floor is 1.83.7
+litellm[proxy]==1.88.1  # CVE-2026-42271 fix: patched floor is 1.83.7

Adding the [proxy] extra ensures fastapi (and other proxy-related dependencies) are installed automatically alongside litellm.

Verification

  • Only requirements.txt is modified
  • The version pin (==1.88.1) and CVE comment are preserved
  • No other dependencies or files are affected

…stall

Fixes agent0ai#1728. On a fresh install, litellm raises APIConnectionError
because fastapi is not installed. Adding the [proxy] extra to the
litellm dependency ensures fastapi is installed automatically.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4384e506f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread requirements.txt
langchain-unstructured==0.1.6
liteparse==2.0.3
litellm==1.88.1 # CVE-2026-42271 fix: patched floor is 1.83.7
litellm[proxy]==1.88.1 # CVE-2026-42271 fix: patched floor is 1.83.7

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid installing proprietary LiteLLM enterprise code

In fresh installs (including Docker builds that run uv pip install -r /git/agent-zero/requirements.txt), the proxy extra does much more than add FastAPI: LiteLLM 1.88.1 declares litellm-enterprise==0.1.42; extra == "proxy", and that package is published as LicenseRef-Proprietary. This pulls proprietary enterprise code into every MIT Agent Zero installation even though the repo only imports the LiteLLM SDK; adding the missing FastAPI/Starlette dependencies directly would avoid changing the redistribution/licensing footprint.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant