A command-line tool for interacting with StupidGPT chatbot. (https://stupidgpt.lol)
![](https://private-user-images.githubusercontent.com/114883816/242307784-e37f1e3d-cc37-47e8-863b-e606bb73ec50.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MzAyNjIsIm5iZiI6MTcyMTUyOTk2MiwicGF0aCI6Ii8xMTQ4ODM4MTYvMjQyMzA3Nzg0LWUzN2YxZTNkLWNjMzctNDdlOC04NjNiLWU2MDZiYjczZWM1MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyMVQwMjQ2MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMTI0N2ViNTZiMDI3ZjdmNDY2NDA1NmI3MTYzOTg0YmNkNzFkNjBlYzkzNDVkODMyMGM1MjBhZDI1ZTU0Y2JhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ODxm08j9fqH6CRMlN-e8Vui88NN5B_7KCAFtu4AGX84)
Note This StupidGPT can be hilarious, and sometimes it can also generate code for you just like the normal gpt..
pip install httpx
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()
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.