Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Question about Installing 'embedchain' with 'openai' Version Compatibility #54

Open
nastya-atro opened this issue Sep 7, 2023 · 1 comment

Comments

@nastya-atro
Copy link

nastya-atro commented Sep 7, 2023

Hello,

I am trying to install the 'embedchain' package in my project, and the documentation specifies that it requires 'openai' version '^3.3.0'. However, when I attempt to install it as per the instructions, I encounter dependency resolution issues with 'openai'.

Here are the steps I've taken:

  1. In my project's package.json file, I've specified the OpenAI version as "openai": "^3.3.0" to ensure compatibility.
  2. I've deleted the node_modules folder and package-lock.json file in my project directory to start fresh.
  3. I've cleared the npm cache using the command 'npm cache clean --force'.

Despite these steps, I still encounter issues when running 'npm install embedchain', which tries to install OpenAI version 4.3.1, causing dependency conflicts.

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: peerOptional openai@"^3.0.0 | ^4.0.0" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peerOptional openai@"^3.0.0 | ^4.0.0" from the root project

Is there any specific guidance or workaround for installing 'embedchain' with 'openai' version '^3.3.0'? Are there any known compatibility issues with certain versions of 'openai' that I should be aware of? I'd appreciate any assistance or advice you can provide on this matter.

Thank you!

@nastya-atro
Copy link
Author

After some investigation, I found that changing "chromadb": "^1.5.6" to "chromadb": "1.5.6" in the package.json file of my project resolved the problem.

I hope this information helps others who might run into a similar problem. Thank you for your work on the embedchain package!

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

No branches or pull requests

1 participant