a16z-infra / companion-app

AI companions with memory: a lightweight stack to create and host your own AI companions
https://ai-companion-stack.com/
MIT License
5.76k stars 959 forks source link

OpenAI API key required when using Replicate #101

Open creact opened 1 year ago

creact commented 1 year ago

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.