Gpt playground is an interactive playground for developers to test the full capabilities of openai's gpt-based models. It is accessible on desktop and mobile devices with rich support for both classes of devices, enabling developers access to the capabilities of Open API's GPT-based models even while on the go.
You can use the Playground to test your use cases and when you are ready, click on view code to get the generated code for your application based on the current configuration on the playground. You can use this code to add openai's GPT-3 model capabilities to your applications
- Create text Completions using any of openai's GPT-based models, "text-davinci-003", "text-curie-001", "text-babbage-001", "text-ada-001" etc.
- Generate code for your applications in NodeJs, Python, Curl and JSON
- Save your prompts as presets and come back to them
You can start using gpt-playground here right away but if you want to self host or run locally, here are a couple of ways to do that:
- Clone the repo:
> git clone [email protected]:lawalbolaji/gpt-playground.git
- In the project's root directory, run:
> cp .env.example .env.local
- Create Auth0 credentials here and add those credentials to your
.env.local
file - Get OpenAI API Key here and add those credentials to your
.env.local
file - Boot up your docker container:
> docker-compose -f dev.docker-compose.yml up -d
- Clone the repo:
> git clone [email protected]:lawalbolaji/gpt-playground.git
- In the project's root directory, run:
> cp .env.example .env.local
- Create Auth0 credentials here and add those credentials to your
.env.local
file - Get OpenAI API Key here and add those credentials to your
.env.local
file - Install NodeJs dependencies:
> npm ci
- Boot up:
> npm run dev
See instructions here on how to setup different poroduction envvironments for the project.
- Missing something or found a bug? Report here.
- Pull requests are welcome but for major issues, please open an issue here for discussion first.