GithubHelp home page GithubHelp logo

gusta's Introduction

Gusta the GPT prompt processor

Living with ADHD, I hate these things about ChatGPT:

  • It takes ages for the chat interface to finally load.
  • It's such a pain to type out the same prompts over and over again.
  • Too often, I switch tabs while waiting for the response to appear, and then later, I accidentally close the tab with the response without ever seeing it.

So, I created Gusta - the GPT prompt processor.

  • Gusta allows you to choose from prompt templates, both default and custom.
  • It saves the prompts and responses in JSON files. This feature can be turned off.
  • A text of an article can be scraped with a single click for further manipulation.
  • The price of the last job is shown in either dollars or your preferred currency.

A screenshot of Gusta

Table of Contents

  1. Installation
  2. Usage
  3. Contributing
  4. License

Installation

Prerequisites

  • Python
  • Newspaper3k
  • openai

Installing

  1. Clone the repository:

    git clone https://github.com/michalkasparek/gusta.git
    
  2. Navigate to the project directory:

    cd gusta
    
  3. Install the required packages:

    pip install -r requirements.txt
    
  4. Rename config.user_sample.json to config.user.json. Open it and paste your API key (https://platform.openai.com/account/api-keys) in the key field, then save the file.

Usage

After installing the dependencies and entering your API key into config.user.json, run:

python gusta

If you want to add your own templates, add them to the template section in the config.user.json file. Each template has three parts: the system prompt, the first part of the actual prompt and then the second part of the actual prompt. The user's input is automatically inserted between the first and the second part of the actual prompt. Get inspiration from the sample templates included in the file.

Contributing

To-do

  • Exception handling has not been implemented yet, which means there are no error messages. Some of the usual cases:
    • Bad API key.
    • The input is too long.
    • GPT servers are down.
    • Problems with internet connection.
  • Some parts of the interface disappear when the window is resized below certain size.

License

Gusta is licensed under the MIT License.

gusta's People

Contributors

michalkasparek avatar

Watchers

 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.