This is a Next.js project bootstrapped with create-next-app that uses OpenAI to generate text and is traced using Phoenix.
Install the dependencies:
npm install
Make sure you have OPENAI_API_KEY set as an environment variable.
First, start phoenix to trace the application.
docker run -p 6006:6006 arizephoenix/phoenix:latest
Start the Next.js application:
npm run dev
View the application at http://localhost:3000 and the traces in the Phoenix UI at http://localhost:6006.
You can check out the Phoenix GitHub repository - your feedback and contributions are welcome!