embedchainjs icon indicating copy to clipboard operation
embedchainjs copied to clipboard

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

Open nastya-atro opened this issue 2 years ago • 1 comments

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 avatar Sep 07 '23 08:09 nastya-atro

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!

nastya-atro avatar Sep 07 '23 11:09 nastya-atro