Git Product home page Git Product logo

wa-gpt's Introduction

A command-line tool for interacting with StupidGPT chatbot. (https://stupidgpt.lol)

"This is not an official API"

Note This StupidGPT can be hilarious, and sometimes it can also generate code for you just like the normal gpt..

Requirements

pip install httpx

Usage

You can find an example of how to use this API in the (example.py) file or you can do like the following code

from time import sleep

from api import StupidGPT


StupidGPT.clean_console()
print('DOUBLE "enter" to send a message')

while True:
    prompt = StupidGPT.get_query('\n\033[38;5;20mYou\033[0m: ').lower()

    if prompt == '!quit':
        break

    results = StupidGPT.send_message(prompt=prompt)
    #! Print it like a streaming
    for result in results:
        print(f'\033[38;5;121m{result}\033[0m', end='', flush=True)
        sleep(0.004)
    print()

StupidGPT.close_session()

Legal Disclaimer

Note This was made for educational purposes only, nobody which directly involved in this project is responsible for any damages caused. You are responsible for your actions.

wa-gpt's People

Contributors

x404xx 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.