- Temporary local Chat Mode
- Supports a variety of OpenAI models and web-search
- Choose from many themes
- Convert responses to HTML or VOICE
- Maintains a log of reponses
see https://platform.openai.com/docs for model information
requires the latest openai module
pip install openai
For Linux / Mac you can either gh repo clone MLeidel/GptGUI or download a zip file of this repo.
Before using this application Python 3.x must be installed.
To install Python go to https://www.python.org/downloads/.
Click Download Python and follow the installation instructions.
tkinter is automatically installed with Python on Windows
For Linux tkinter is installed with: apt install python3-tk
Use the requirements.txt file to install any modules you may be missing.
pip3 install -r requirements.txtVoice
For voice playback of the responses the mpv vidio player is required for Linux.
For voice playback on Windows OS no player is required but VLC is recommended.
You will also have to Sign Up at https://openai.com/api/ and create
an API Key.
There is no cost to do so.
You should configure your key with an Environment Variable and use that
Variable name in the options.
After starting the app the first time click the Options button. Change any other options that would work better on your system or preferences.
The options are stored in a plain text file called gptgui.ini.
If you prefer you could change the settings with a text editor.
Type your prompt in the top box, and hit "Submit Query" or Ctrl-g.
The Gpt AI response will appear in the larger box below.
- New
Begins a new conversation
To change the system role message for the current session,
type prompt You are a .......... assistant
into the Prompt Area and then click "New".
- View
Displays the log file you set up in Options
- Text
Opens the current response or selection in your text editor
Set up the name of your text editor in the options.
- Html
Opens the current response or selection in your default browser Converting Markdown to HTML
- Options
launches the Options editor program
- Submit Query
Submits prompt to OpenAI engine
- Web
Toggle the Gpt "web-search" tool
- Select Temporary Model
Select from models listed in gptgui.ini file
- Close
Exit the program. Ctrl-q exits the program quickly.
There is a context menu (depress right mouse button) for convenience. The height of the query text area (top frame) can be lengthened or shortened from this menu.
At startup, if a previous conversation is detected the user is prompted to either continue or start a new conversation. So closing the app does not terminate a conversation. Also, to start a new conversatioin while the app is running use the 'New' button. Multiple conversations are not preserved anywhere, but will remain in the log until it is purged. GptGUI operates with other software on your system:
- a text editor
- an audio player (Linux requires "mpv")
- an Internet browser
- Python/tkinter and libraries
| key | action |
|---|---|
| Ctrl-H | This HotKey help |
| Ctrl-Q | Close Program No Prompt |
| Ctrl-Shift-S | Speak the Currrent Text |
| Ctrl-Shift_T | Toggle Speech |
| Ctrl-G | Submit Query (Button) |
| Ctrl-Enter | Submit Query (Button) |
| Ctrl-F | Find text |
| Ctrl-N | Find next text |
| Ctrl-J | Open Selected URL |
| Ctrl-M | Show prompt.md (prompt examples) |
Submiting the word "prompt" also shows the prompt.md document.
END