To get started with this project, follow these steps:
git clone https://github.com/obinnascale3/nextjs-chat-app
cd nextjs-chat-app
Make sure you have Node.js installed. Then, install the project dependencies:
npm install
This project uses OpenAI so you'll need an OpenAI API key. You'll need to add your Langtrace API key as well (Sign up to Langtrace if you don't have an account). You can also change the model to gtp-4 if your API key has access.
OPENAI_API_KEY=
OPENAI_MODEL=gpt-3.5-turbo
LANGTRACE_API_KEY=
Run the development server:
npm run dev
Open your browser and go to http://localhost:3000 to view the app. Send a message, wait for a reply then go to your Langtrace dashboard to start viewing traces and other metrics.