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

PythonSDK: OpenAI dependency #102

Closed
csgulati09 opened this issue Mar 22, 2024 · 1 comment
Closed

PythonSDK: OpenAI dependency #102

csgulati09 opened this issue Mar 22, 2024 · 1 comment
Labels

Comments

@csgulati09
Copy link
Collaborator

csgulati09 commented Mar 22, 2024

Hotfix: add openAI in install_requires

Copy link

dosubot bot commented Mar 22, 2024

To implement the recently added hotfix in the install_requires for the OpenAI dependency in the PythonSDK, you should specify the exact version of the OpenAI package that contains the hotfix. According to the CHANGELOG.md, the hotfix is in version v0.1.51 of the OpenAI package.

You would update the install_requires section in your setup.cfg file to include openai>=0.1.51,<2.0 instead of the current openai>=1.0,<2.0 under [options.extras_require]. Here's how you can do it:

install_requires =
  httpx
  mypy>=0.991,<2.0
  black==23.7.0
  typing_extensions>=4.7.1,<5.0
  pydantic>=1.10.12
  openai>=0.1.51,<2.0

Please note that the OpenAI dependency is listed under [options.extras_require] for development dependencies and not directly in the install_requires. If you intend for this hotfix to be a part of the main dependencies, you should add it to the install_requires section as shown above.

If you have any further questions or need more assistance, feel free to ask.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant