diff --git a/clients/js/package.json b/clients/js/package.json index 9756542e5a0d..2bcf264332e6 100644 --- a/clients/js/package.json +++ b/clients/js/package.json @@ -50,11 +50,28 @@ "dependencies": { "isomorphic-fetch": "^3.0.0" }, - "optionalDependencies": { + "peerDependencies": { "@visheratin/web-ai": "^1.0.0", "@visheratin/web-ai-node": "^1.0.0", "@xenova/transformers": "^2.0.0", "cohere-ai": "^6.0.0", - "openai": "^3.0.0" + "openai": "^3.0.0 | ^4.0.0" + }, + "peerDependenciesMeta": { + "@visheratin/web-ai": { + "optional": true + }, + "@visheratin/web-ai-node": { + "optional": true + }, + "@xenova/transformers": { + "optional": true + }, + "cohere-ai": { + "optional": true + }, + "openai": { + "optional": true + } } }