thirdrocktechno / strapi-plugin-chatgpt

Integrate ChatGPT with Strapi in 2 minutes.
10 stars 0 forks source link

'PineconeClient: API key not set. Call init() first.' #5

Open one-vs opened 1 year ago

one-vs commented 1 year ago

Hello,

I'm experiencing an issue with the initialization of the PineconeClient in my Strapi project. When I run strapi develop, I get the following error:

Starting the compilation for TypeScript files in /ai-bot-backend PineconeClient: Error getting project name: TypeError: fetch failed /ai-bot-backend/node_modules/@pinecone-database/pinecone/dist/index.js:219 throw new Error('PineconeClient: API key not set. Call init() first.'); ^

[Error: PineconeClient: API key not set. Call init() first.]

Node.js v18.17.1 Done in 8.45s. It seems like the PineconeClient is trying to access the API key before it's been set.

This error prevents me from starting my development server and effectively blocks my progress.

Any help on resolving this would be greatly appreciated. Thanks in advance!

Environment:

Node.js version: v18.17.1 Operating System: Ubuntu Strapi Version: 4.12.1 Database: pg Yarn version: v1.22.19 Best regards,

valentinedwv commented 1 year ago

Yea, I hit this, too.

drumst0ck commented 2 months ago

Add your openAI and pinecone API key. server/services/settings.js