IroncladDev / LangChain.js-LLM-Template

This is a LangChain LLM template that allows you to train your own custom AI LLM.
318 stars 52 forks source link

Absent ApiKeys fields in `openAIEmbeddings()` #1

Closed RahulGautamSingh closed 1 year ago

RahulGautamSingh commented 1 year ago

In some calls like below the API key fields seems necessary else yarn train fails.

This one failed for me. https://github.com/Conner1115/LangChain.js-LLM-Template/blob/501a050b212f9e7abbb8359c2e2cea3c6dce50aa/script/initializeStore.js#L34

Haven't tried this but might fail. https://github.com/Conner1115/LangChain.js-LLM-Template/blob/501a050b212f9e7abbb8359c2e2cea3c6dce50aa/lib/generateResponse.js#L8