Skip to content

Conversation

@copybara-service
Copy link

fix: Add version compatibility checks for LiteLLM and OpenAI

This adds runtime checks in LiteLlm.__init__ to make it so that the installed versions of litellm have to be less than 2.0.0 and openai are less than or equal to 1.99.9. Inn pyproject.toml added more comments and add version bounding in the optional extension , and packaging has been added as a dependency for version parsing.

@copybara-service copybara-service bot force-pushed the copybara/796554298 branch 7 times, most recently from 19011f4 to 6548b03 Compare August 19, 2025 00:02
This adds runtime checks in `LiteLlm.__init__` to make it so that the installed versions of `litellm` have to be less than 2.0.0 and `openai` are less than or equal to 1.99.9. Inn `pyproject.toml` added more comments and add version bounding in the optional extension , and `packaging` has been added as a dependency for version parsing.

PiperOrigin-RevId: 796554298
@copybara-service copybara-service bot closed this Aug 19, 2025
@copybara-service copybara-service bot deleted the copybara/796554298 branch August 19, 2025 21:44
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