Coder Social home page Coder Social logo

aaanh / gpt-playground Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 673 KB

A simple web-based client interfaces with OpenAI API

Home Page: https://gpt.aaanh.app

License: MIT License

JavaScript 1.61% TypeScript 86.12% CSS 2.50% Dockerfile 5.83% Shell 3.94%
create-t3-app gpt-3 webclient gpt-4

gpt-playground's Introduction

A Simple GPT Web Client https://gpt.aaanh.app

Just a web interface for sending HTTP requests to the paid GPT API.

It uses the openai npm package.

Web application is bootstrapped using create-t3-app.

Deploy to Vercel using this neat little button that I can't seem to customize the styling

⚠️ Attention! You must have access to an OpenAI API account and an UpStash account and a Vercel account.

Deploy with Vercel

Usage

  • Install dependencies

    npm install
    
  • Copy .env.example to .env

  • Add your OpenAI API key in .env

  • (Optional) Add your upstash Redis tokens for rate limiting

  • Run

    npm run dev
    

Deployment

This repository can be forked as-is and deployed to Vercel.

Remember to add your API key to the Vercel project environment variables.

Contributing

All types of contributions, e.g. suggestion, MR/PR, bug report, etc., are warmly welcomed.

Please refer to the CONTRIBUTE.md document and the Code of Conduct for more detailed guidelines.

Donate/Sponsor

https://ko-fi.com/aaanh

Copyright materials

⚠️ The aaanh logo and the pseudonym aaanh is my trademark and subject to copyright laws.

gpt-playground's People

Contributors

aaanh avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zeruiw

gpt-playground's Issues

JSON issue

While running the Single-Turn prompt, it returns a prompt:

Unexpected token '<', "<!DOCTYPE "... is not valid JSON

What could be the issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.