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

AttributeError:module'openai'hasnoattribute'error #1

Open
Hiyahh opened this issue Jan 18, 2024 · 3 comments
Open

AttributeError:module'openai'hasnoattribute'error #1

Hiyahh opened this issue Jan 18, 2024 · 3 comments

Comments

@Hiyahh
Copy link

Hiyahh commented Jan 18, 2024

Since the version of the openai library is not specified in the requirements .txt file, which version of openai is used by the author? The version of the openai library I downloaded by default is 1.8.0, and uploading pdf will report the error "AttributeError: module 'openai' has no attribute 'error'"

@barmajahssr
Copy link

the problem persists and Mr praj still doesnt give any explanation to this issue. Please can you answer? thanks

@praj2408
Copy link
Owner

i've updated all the library package versions in the requirements file and fixed the issues. please check it out. when i developed this project i used openai library version 1.8.0. it seemed to work well but the problem is, as the company openai updates the packages, they just dont support the older versions. even if you install the older versions of openai library, it doesnt work. i've updated it for now and its working fine.

@praj2408
Copy link
Owner

i've updated the entire codebase with the recent package versions of langchain and openai. please let me know if you had any issues.

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 a pull request may close this issue.

3 participants