-
Notifications
You must be signed in to change notification settings - Fork 17.2k
AttributeError: module 'openai' has no attribute 'error' #28529
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
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
investigate
Flagged for investigation.
Comments
same |
This was referenced Dec 9, 2024
efriis
pushed a commit
that referenced
this issue
Dec 11, 2024
…ersion compatibility (#28662) - [ ] Main note - **Description:** I added notes on the Jina and LocalAI pages telling users that they must be using this integrations with openai sdk version 0.x, because if they dont they will get an error saying that "openai has no attribute error". This PR was recommended by @efriis - **Issue:** warns people about the issue in #28529 - **Dependencies:** None - **Twitter handle:** JoaqCore - [ ] **Add tests and docs**: If you're adding a new integration, please include 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/docs/integrations` directory. - [ ] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/ Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.
Hi, @wnhrt. I'm Dosu, and I'm helping the LangChain team manage their backlog. I'm marking this issue as stale. Issue Summary:
Next Steps:
Thank you for your understanding and contribution! |
same error, with those pkg verions langchain = "==0.3.20"
langchain-openai = "0.3.8"
langchain-community = "0.3.19" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
investigate
Flagged for investigation.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying do embed some documents with LocalAI and pgvector.
This error should not appear. I found some issues about the same error message from last year, which was solved by downgrading packages.
But those versions are too old, so I don't feel comfortable downgrading them that far.
I am on WSL2 Debian on Windows 11.
EDIT:
Using
openai
directly with the same configuration, I got no problem connecting to my LocalAI instance.System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: