Skip to content

Files

Latest commit

394ebdf · Apr 23, 2025

History

History

nextjs-openai-simple

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 22, 2024
May 22, 2024
May 22, 2024
May 22, 2024
May 22, 2024
May 22, 2024
Mar 2, 2025
May 22, 2024
May 22, 2024
Mar 2, 2025
Apr 23, 2025
Apr 23, 2025
May 22, 2024
May 22, 2024
May 22, 2024

README.md

Nextjs + OpenInference Minimum Working Example

This is a Next.js project bootstrapped with create-next-app that uses OpenAI to generate text and is traced using Phoenix.

Installation

Install the dependencies:

npm install

Getting Started

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.

Learn More

You can check out the Phoenix GitHub repository - your feedback and contributions are welcome!