generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 604
ci: update openai requirement from <1.110.0,>=1.68.0 to >=1.68.0,<2.15.0 #1370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set
>=2.0.0? I would want us to be careful about using a 2.x feature that causes problems for customers installing a 1.x version of openai.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is more work on us to maintain two versions, but >=2 would be a breaking change since you can only import one python version of a dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that something we should accept though? Otherwise we won't be able to use 2.x specific features and so it defeats the purposes of us updating correct?
I guess though technically updating to 2.x allows users to run both openai 2.x and strands directly in the same environment. But then we we need to update our integ/unit tests to run with both 1.x and 2.x.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to continue testing 1.x? They published 2.x on 9/30/2025, and havent updated 1.x since. I cant find any guidance on their ongoing support for 1.x, so im guessing they bumped it to just make a breaking change, and arent going to do any more massive feature development in 1.x
So long as we arent impacted by the breaking changes between 1.x and 2.x, I think we can move forward with this pr, especially since dean already called out the main place where this breaking change would be impacting: #975 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke with Patrick and from what we are seeing this would be breaking as it may force customers to upgrade when previously it would have worked. For example if a project previously imported a dependency which has a strict dependency on openai 1.x, they now have no path forward.
So the mechanism to upgrade is through conditional logic as is ubiquitous https://github.com/search?q=%22version.parse%28%22+%22.__version__%29%22&type=code.
However, it would be dangerous for us to continue with a check on ourselves to not break 1.0 users. Meaning we would want integ tests specifically on the various major versions supported.