/chatGPT_apps

A simple python script to simplify the request to chatGPT using OpenAI API

Primary LanguagePython

chatGPT_apps

A simple python (test) script to simplify the request to chatGPT using OpenAI API.

GPT_apps.py is the main script to input question and display result with comamnd terminal.
ask.bat is Windows batch file to... type less ;)

Usage example of ask.bat in Windows:

  1. To make a request once.
    Type ask, follow with the question
    $ ask who is the CEO of google

Sundar Pichai is the current CEO of Google.

2. To keep apps open for multiple requests.
Just type ask
$ ask
> who is the CEO of Microsoft


Satya Nadella is the current CEO of Microsoft.

>

3. Type 'Q' to quit.
> q
Bye!

To directly execute python script once,
$ python GPT_apps.py "embrace your qwuestion within quotation"
> (type yr question after this prompt)

To keeps apps open for multiple requests, simply
$ python GPT_app.py
'>' prompt will show up again after every question, waiting for next one

Type 'q' or 'Q' to quit the program.

Have fun!