Update Dependencies to Fix OpenAI API Parameter Error #1161
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.
Updates the versions of several dependencies in
pyproject.toml
—namely,langchain-community
,langchain-openai
, and both instances oflanggraph
—to address a dependency error that breaks reasoning models.Issue Details:
During execution, an outdated call to the OpenAI API in the current versions of these libraries results in the following error:
The libraries were using an API call that included a
temperature
parameter not supported by the model, leading to aBadRequestError
.Solution:
The new versions of
langchain-community
,langchain-openai
, andlanggraph
in thepyproject.toml
implement updated API calls that remove the unsupported parameter and correctly interact with the OpenAI API.Impact:
The update ensures that reasoning models can be used without encountering the OpenAI API error.
The changes should be backward compatible, as the updated dependencies maintain the intended functionality while fixing the error.