a16z-infra/companion-app

OpenAI API key required when using Replicate

Opened this issue · 0 comments

creact commented

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.