Skip to content

fix: update litellm to >=1.83.0 to resolve security vulnerability#6599

Open
quad2524 wants to merge 1 commit intogoogleapis:mainfrom
quad2524:issue-6598-litellm-version
Open

fix: update litellm to >=1.83.0 to resolve security vulnerability#6599
quad2524 wants to merge 1 commit intogoogleapis:mainfrom
quad2524:issue-6598-litellm-version

Conversation

@quad2524
Copy link
Copy Markdown

Summary
This PR updates the litellm dependency to version 1.83.0 or higher. This upgrade is necessary to bypass known security vulnerabilities present in version 1.82.7.

Because litellm introduced changes to how models and providers are validated, I have also updated the internal utility functions and associated tests to maintain compatibility.

Changes
Dependency Update: Bumped litellm version requirement in setup files.

Core Logic (_evals_common): Updated _is_litellm_model to utilize the newer get_llm_provider pattern. This ensures we accurately validate model strings against LiteLLM’s supported provider list.

Test Suite:

Refactored mocks to account for the new return signature of litellm.get_llm_provider, which now includes additional metadata (model, provider, etc.).

Updated get_valid_models mocks to ensure consistent behavior during unit testing.

Fixes #6598 🦕

@quad2524 quad2524 requested a review from a team as a code owner April 16, 2026 19:32
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Apr 16, 2026
@quad2524 quad2524 force-pushed the issue-6598-litellm-version branch from 9590ca7 to 24dff9c Compare April 16, 2026 19:38
@quad2524 quad2524 changed the title chore: Update litellm version for vulnerability remediation fix: update litellm to >=1.83.0 to resolve security vulnerability Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please repin litellm to >1.83

1 participant