homanp / langchain-ui

🧬 The open source chat-ai toolkit

Home Page:https://langchain-ui.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting this error on fresh install

ZekiJohn opened this issue · comments

I'm getting this error after installing it and visit localhost:3000

image

image

Thanks for reporting! Will take a look ASAP.

@ZekiJohn I just cloned the project and I'm not seeing this issue.

Have you added the required .env variables?

Could you give some more context?

I did not set .env variables, I didn't thought that would cause this problem, where can I get those variable, sorry I'm new to Next

I did not set .env variables, I didn't thought that would cause this problem, where can I get those variable, sorry I'm new to Next

LangChain UI requires a database and auth provider. I suggest using supabase.com for db and I personally use GitHub OAuth. You also need to provide OpenAI access token.

@homanp Do you need the db connection to get past the authentication to view the homepage?

I've added my NEXT_PUBLIC_GITHUB_ID & NEXT_PUBLIC_GITHUB_SECRET however I think I'm putting the wrong Authorization callback URL.

The connection just fails every time I try to logging in with github

Sorry probably a noob question

@rmajidy yes you need the db connection. Easiest way is to setup a db with Supabase.com or similar.

@homanp thanks for the quick reply! What do put in the Authorization callback URL in github Oauth section?

@homanp thanks for the quick reply! What do put in the Authorization callback URL in github Oauth section?

I use this locally:

Screenshot 2023-04-23 at 22 05 04

@homanp Awesome, thank you so much man!