Skip to content
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

Compatibility issue OpenAI (version 1.1.1) and Langchain #877

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

Prikshit7766
Copy link
Contributor

@Prikshit7766 Prikshit7766 commented Nov 7, 2023

Description

Compatibility issue with the Langchain library due to the recent changes in the OpenAI Python package (version 1.1.1). The Langchain library relies on certain structures and imports from the OpenAI package, which have been modified in the new version

image

To avoid the above error, Updated the OpenAI package version specification in pyproject.toml from ">0.27.0" to "0.28.1" to ensure we use a compatible version of OpenAI (version 0.28.1).


➤ Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Usage

Checklist:

  • I've added Google style docstrings to my code.
  • I've used pydantic for typing when/where necessary.
  • I have linted my code
  • I have added tests to cover my changes.

@Prikshit7766 Prikshit7766 changed the title Downgrade the OpenAI package to version 0.28.1 Downgrade the OpenAI package to version Nov 7, 2023
@Prikshit7766 Prikshit7766 changed the title Downgrade the OpenAI package to version Compatibility issue OpenAI (version 1.1.1) and Langchain Nov 8, 2023
@chakravarthik27 chakravarthik27 merged commit 7736d41 into release/1.8.0 Nov 9, 2023
3 checks passed
@Prikshit7766 Prikshit7766 self-assigned this Nov 9, 2023
@ArshaanNazir ArshaanNazir deleted the fix/OpenAI-version branch November 16, 2023 06:19
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.

None yet

2 participants