Fixing tests running with newer litellm and Gemini 1.5 deprecation#330
Merged
jamesbraza merged 2 commits intomainfrom Jan 5, 2026
Merged
Fixing tests running with newer litellm and Gemini 1.5 deprecation#330jamesbraza merged 2 commits intomainfrom
litellm and Gemini 1.5 deprecation#330jamesbraza merged 2 commits intomainfrom
Conversation
…ds tiktoken encodings
There was a problem hiding this comment.
Pull request overview
This PR addresses CI test failures by updating to a newer version of litellm (1.80.11) and migrating from the deprecated Gemini 1.5 Flash model to Gemini 2.5 Flash. The key changes include:
- Updated
litellmdependency from 1.80.10 to 1.80.11 to adopt lazy loading of tiktoken encodings - Migrated test from deprecated
gemini-1.5-flashtogemini-2.5-flashmodel - Added CI step to pre-download tiktoken encodings to maintain VCR cassette compatibility
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Updated litellm package from version 1.80.10 to 1.80.11 with new hashes and metadata |
| pyproject.toml | Bumped litellm minimum version requirement to 1.80.11 with updated comment explaining the reason |
| tests/test_envs.py | Changed model from gemini-1.5-flash to gemini-2.5-flash with explanatory comment about deprecation |
| tests/cassettes/TestParallelism.test_dummyenv_using_empty_params.yaml | Updated VCR cassette recording to reflect the new Gemini 2.5 Flash model endpoint and response |
| .github/workflows/tests.yml | Added pre-download step for tiktoken encodings to fix compatibility with litellm's lazy loading |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a097cb2 to
656a672
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR gets CI running again:
litellm==1.80.11now lazily loadstiktokenencodings per [Refactor] litellm/init.py: lazy load encoding from main.py BerriAI/litellm#18070, so we pre-download them in CI