Skip to content

Fixing tests running with newer litellm and Gemini 1.5 deprecation#330

Merged
jamesbraza merged 2 commits intomainfrom
newer-litellm
Jan 5, 2026
Merged

Fixing tests running with newer litellm and Gemini 1.5 deprecation#330
jamesbraza merged 2 commits intomainfrom
newer-litellm

Conversation

@jamesbraza
Copy link
Collaborator

This PR gets CI running again:

@jamesbraza jamesbraza self-assigned this Jan 5, 2026
Copilot AI review requested due to automatic review settings January 5, 2026 17:47
@jamesbraza jamesbraza added the bug Something isn't working label Jan 5, 2026
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jan 5, 2026
@dosubot
Copy link

dosubot bot commented Jan 5, 2026

Related Documentation

Checked 1 published document(s) in 0 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 litellm dependency from 1.80.10 to 1.80.11 to adopt lazy loading of tiktoken encodings
  • Migrated test from deprecated gemini-1.5-flash to gemini-2.5-flash model
  • 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.

@jamesbraza jamesbraza merged commit b4ba2c4 into main Jan 5, 2026
5 checks passed
@jamesbraza jamesbraza deleted the newer-litellm branch January 5, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants