/gpt4-playground

Clone of OpenAI's ChatGPT and Playground environments to enable experimenting with API keys.

Primary LanguageTypeScriptMIT LicenseMIT

GPT-4 Playground

This project is a playground for GPT-4, a large-scale unsupervised language model. It is built with Next.js, Tailwind CSS, and React.

This project allows you to use your API key in a mock ChatGPT environment...this is especially useful for testing out your GPT-4 API key! Additionally, there is a playground environment that allows you to test out your API key with a variety of parameters including increasing your token limit to 31,768 (if you have gotten off of the waitlist).

All API keys are stored in your browser's local storage, so you can use this project without having to worry about your API key being stolen.

Demo

Mock ChatGPT Environment

This environment has most of the critical features like conversation history (which is stored locally), prompting, and multiple conversations. This environment is a great way to test out your API key and see how it works! ChatGpt-4 ChatGPT

Playground Environment

ChatGpt-4 Playground

Running Locally

To run this project locally, you will need to have Node.js installed. Once you have Node.js installed, you can clone this repository and run the following commands:

yarn install
yarn dev

This will start a local server on port 3000. You can then navigate to localhost:3000 to view the project!

Contributing

This project is still in development! Contributions are very much appreciated!

If you would like to contribute to this project, please feel free to open a pull request or an issue, I hashed this project out in a few hours so there are bound to be some bugs!