Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error on 06 - qa #1

Open
abhijithsreenivas opened this issue Jun 16, 2024 · 0 comments
Open

Getting Error on 06 - qa #1

abhijithsreenivas opened this issue Jun 16, 2024 · 0 comments

Comments

@abhijithsreenivas
Copy link

I am getting below error while running, Do we need to add anything apart from OPEN_AI_KEY ?

asj@asj-mac in ~/Desktop/ai-project/asj-langchain-qa > node --env-file=.env app.js "I lost my watch, what I need to do next?"
file:///Users/asj/Desktop/ai-project/asj-langchain-qa/node_modules/@langchain/openai/dist/embeddings.js:104
throw new Error("OpenAI or Azure OpenAI API key not found");
^

Error: OpenAI or Azure OpenAI API key not found
at new OpenAIEmbeddings (file:///Users/asj/Desktop/ai-project/asj-langchain-qa/node_modules/@langchain/openai/dist/embeddings.js:104:19)
at createStore (file:///Users/asj/Desktop/ai-project/asj-langchain-qa/app.js:14:48)
at loadStore (file:///Users/asj/Desktop/ai-project/asj-langchain-qa/app.js:31:10)
at async query (file:///Users/asj/Desktop/ai-project/asj-langchain-qa/app.js:35:17)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant