zahidkhawaja / langchain-chat-nextjs

Next.js frontend for LangChain Chat.
https://blog.langchain.dev/langchain-chat/
MIT License
989 stars 275 forks source link

.env example or description #3

Open shynsky opened 1 year ago

shynsky commented 1 year ago

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.

Sameedahmad commented 1 year ago

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

altafr commented 1 year ago

same problem here

SangeethaVenkatesan commented 1 year ago

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

rdancer commented 1 year ago

@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?
rmrfxyz commented 1 year ago

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