Skip to content

Security: Remove Litellm#750

Merged
AkhileshNegi merged 3 commits intomainfrom
security/remove-litellm
Apr 14, 2026
Merged

Security: Remove Litellm#750
AkhileshNegi merged 3 commits intomainfrom
security/remove-litellm

Conversation

@AkhileshNegi
Copy link
Copy Markdown
Collaborator

@AkhileshNegi AkhileshNegi commented Apr 13, 2026

  • Removed direct litellm import from app/services/llm/mappers.py; replaced litellm.supports_reasoning() with a lookup against a new OPENAI_REASONING_MODELS constant in app/models/llm/constants.py. Will move to DB soon in coming PR Model Config: Add model configuration table and API endpoints #669
  • Pinned litellm==1.82.1 in pyproject.toml via [tool.uv] override-dependencies to block auto-upgrade to the compromised 1.82.7/1.82. releases (March 2026 supply chain attack).

@AkhileshNegi AkhileshNegi self-assigned this Apr 13, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

Warning

Rate limit exceeded

@AkhileshNegi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 21 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 21 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 25d5a861-f0e5-46a2-846d-6d396858d8f6

📥 Commits

Reviewing files that changed from the base of the PR and between c73704e and bc81773.

⛔ Files ignored due to path filters (1)
  • backend/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • backend/app/models/llm/constants.py
  • backend/app/services/llm/mappers.py
  • backend/pyproject.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch security/remove-litellm

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AkhileshNegi AkhileshNegi marked this pull request as ready for review April 14, 2026 07:03
@AkhileshNegi AkhileshNegi merged commit 945f4f8 into main Apr 14, 2026
2 checks passed
@AkhileshNegi AkhileshNegi deleted the security/remove-litellm branch April 14, 2026 07:09
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