langchain-chat-nextjs icon indicating copy to clipboard operation
langchain-chat-nextjs copied to clipboard

.env example or description

Open shynsky opened this issue 1 year ago • 5 comments

Could someone provide a template/structure for the .env file? It seems like we need: LCC_ENDPOINT_URL and LCC_TOKEN which I don't know where to find.

shynsky avatar Mar 05 '23 18:03 shynsky

And I also have no clue what it is, someone needs to guide us here.

Sameedahmad avatar Mar 06 '23 05:03 Sameedahmad

same problem here

altafr avatar Mar 25 '23 23:03 altafr

LCC_ENDPOINT_URL - This refers to LANGCHAIN CHAT ENDPOINT - which is the backend code - that gets triggered based on the request from next JS. see api/chat.js -

const response = await fetch(process.env.LCC_ENDPOINT_URL, { method: "POST", headers: { "Content-Type": "application/json" }, body: output, });

This is the backend fetch URL - which can be implemented on your own or using https://github.com/hwchase17/chat-langchain

SangeethaVenkatesan avatar Apr 10 '23 01:04 SangeethaVenkatesan

@SangeethaVenkatesan

Suppose one installs https://github.com/hwchase17/chat-langchain and runs it on the same machine. Then .env would be what?:

LCC_ENDPOINT_URL=?what?
LCC_TOKEN=?what?

rdancer avatar Apr 26 '23 23:04 rdancer

I assume it's about auth detail for (some) chains, such as here

rmrfxyz avatar Jul 25 '23 23:07 rmrfxyz