GithubHelp home page GithubHelp logo

blufenix / playgpt Goto Github PK

View Code? Open in Web Editor NEW
32.0 2.0 2.0 326 KB

Runs a sharable ChatGPT docker container, allowing you to share a ChatGPT session with friends via a web browser. You all control the session, as though using the same keyboard.

Dockerfile 16.60% Python 64.91% Shell 18.49%
chatgpt chatgpt-api chatgpt-api-wrapper

playgpt's Introduction

PlayGPT

Runs a sharable ChatGPT docker container using the acheong08/ChatGPT API and elisescu/tty-share.

This allows you to share a terminal screen (TTY) with your friends, and interact with ChatGPT together. You all control the same session, as though you were using the same keyboard.

Setup

  1. Clone this repo.
  2. Create a config.json within the game directory. The format of the JSON file must match the format specified by the acheong08/ChatGPT API.

Usage

./run.sh [--public] [--headless] [--readonly]

You can also pass any arg that tty-share accepts to customize your setup.

./run.sh --public --headless --headless-cols 160 --headless-rows 50

Interacting with ChatGPT

You can directly use the terminal prompt to interact, as seen here:

                  Welcome to PlayGPT! Join via your browser at http://172.17.0.2:8000/s/local/                   
       or https://on.tty-share.com/s/zKdiaL5wwsez_W6KRyZ1uHGcLJvR3UXDXSnJqdauADJQrtWOYU9AoMvO3bwagmkCEPw/        

Logging in...
Welcome to the game! Begin by entering an initial prompt for the AI.
NOTE: You must press [enter] TWICE to submit messages.

> This is a test.
>
Hello! I am Assistant, a large language model trained by OpenAI. I am here to help you with any
questions you may have. Is there anything specific you would like to know? I am here to assist you.

>

───────────────────────────────────────────────────[ PlayGPT ]───────────────────────────────────────────────────

Headless Mode

When running with --headless, you will be given the URL in the terminal output. Connect with a browser to join.

user@dev:~/PlayGPT$ ./run.sh --public --headless
================================================================
Building docker image
================================================================
Sending build context to Docker daemon  1.196MB
Step 1/15 : FROM ubuntu:22.04

... snip ...

================================================================
Starting docker container
args: --public --headless
================================================================
public session: https://on.tty-share.com/s/7zve4SiiJc76pPw8WT0TAJIrKRUpjMpdcjEDHz3VwIMtOkgjNhTPQfHeAiD3RKAFbfI/
local session: http://172.17.0.2:8000/s/local/

Demo

Interactive Session Headless Session

playgpt's People

Contributors

blufenix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.