companion-app icon indicating copy to clipboard operation
companion-app copied to clipboard

OpenAI API key required when using Replicate

Open creact opened this issue 1 year ago • 0 comments

Getting the following error when running: npm run generate-embeddings-pinecone:

Error: (Azure) OpenAI API key not found at new OpenAIEmbeddings (file:///workspaces/companion-app/node_modules/langchain/dist/embeddings/openai.js:73:19) at file:///workspaces/companion-app/src/scripts/indexPinecone.mjs:47:3 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

This is my code referring to Replicate

OpenAI related environment variables

OPENAI_API_KEY=sk-****

Replicate related environment variables

REPLICATE_API_TOKEN=****

After checking the project demo, I have noticed that the project seems broken. No replies are received after text input.

creact avatar Oct 16 '23 23:10 creact