Code Monkey home page Code Monkey logo

gpt_http's Introduction

GPT_HTTP (ChatGPT for Vintage Web Browsers)

GPT_HTTP is a Flask-based web application that lets users interact with OpenAI's GPT models through a web interface. It is designed to be compatible with vintage systems, including early Macintoshes, by formatting responses with characters and HTML tags suitable for older machines.

ChatGPT client running on a vintage Macintosh Plus

ChatGPT client running on Windows XP

Setup Instructions

Prerequisites

  • Python 3.x
  • OpenAI API key

Installation

  1. Clone the repository:

    git clone https://github.com/hunterirving/gpt_http.git
    cd gpt_http
  2. Set up the virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install the required packages:

    pip install -r requirements.txt
  4. Configure your OpenAI API key:

    • Create a config.py file in the root of the project directory.

    • Add your OpenAI API key to config.py:

      open_ai_api_key = "your_openai_api_key"
  5. Run the Flask application:

    python3 gpt_http.py
  6. Access the application:

    Open a web browser on your vintage machine and navigate to http://<ip_address_of_flask_server>:8080,

    Replace <ip_address_of_flask_server> with the actual IP address of the machine running the Flask server. Ensure both machines are connected to the same network.

Deactivating the Virtual Environment

When you're done working with this project, deactivate the virtual environment with:

deactivate

.gitignore

Ensure your .gitignore file includes the following entries to avoid committing sensitive information, virtual environment files, and unnecessary cache files:

config.py
venv/
__pycache__/

Contributing

Feel free to submit issues or pull requests for improvements and bug fixes.

License

This project is licensed under the GNU General Public License v3.0.

gpt_http's People

Contributors

hunterirving avatar

Stargazers

Adam Davis avatar Jordan Trbuhovic avatar

Watchers

 avatar Kostas Georgiou 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.