This is a Next.js project bootstrapped with create-next-app
.
This project is a simple web application that uses the OpenAI GPT-3.5 model to provide code suggestions and completions. It uses the Monaco Editor as the code editor and the OpenAI API to interact with the GPT-3.5 model.
First, install the dependencies:
npm install
# or
yarn
Then, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can create a .env.local
file in the root of the project and add the following environment variables:
OPENAI_API_KEY=your-openai-api-key
Read the article How to Build a OpenAI GPT-3.5 Turbo Copilot With The Monaco Editor to learn more about this project.