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

The code Fails With Error #1

Open
grabani opened this issue Apr 3, 2023 · 2 comments
Open

The code Fails With Error #1

grabani opened this issue Apr 3, 2023 · 2 comments

Comments

@grabani
Copy link

grabani commented Apr 3, 2023

Hi There,

I have tried several options to resolve the code failure (including using ChatGPT). Running the code as is I get the error:

AttributeError: module 'openai' has no attribute 'ChatCompletion'

Essentailly ChatGPT says that I should use:

completion = openai.Completion.create(

But that doesn't work either.

image

I then asked for more help:

image

It finaaly suggsted:

image

But that didn't work either.

Any suggetsions?

@grabani
Copy link
Author

grabani commented Apr 5, 2023

The issue was caused by me using openai v0.8. I upgraded to the latest version which solved the problem.

@iMiebaka
Copy link

iMiebaka commented Oct 5, 2023

The issue was caused by me using openai v0.8. I upgraded to the latest version which solved the problem.

You might want to refer to the pull request so it always get the latest version of the library. Cheers

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

No branches or pull requests

2 participants