Skip to content

ChaoticRoman/chatgpt-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Python Clients

This repository contains Python command-line interface (CLI) and graphical user interface (GUI) clients for OpenAI's ChatGPT. The clients are designed to be simple and easy to use, with no arguments required to run the commands.

Dependencies

The clients depend on the following Python packages:

  • openai: This package is used to interact with the OpenAI API and send requests to the ChatGPT model.

Installation

Note: Prefer your distribution packages if possible.

To install the dependencies for CLI client, run the following command:

pip install openai

For GUI history viewer you would need Tkinter, which is often part of standard Python installation, and some additional libraries:

pip install tkinterweb mistletoe pygments

Usage

API key

Expects .api_key file in the repo directory with your OpenAI API key in there. Don't worry to contribute, the filename is in .gitignore already.

CLI Client

To use the CLI client, run the following command:

./cli.py

The CLI client will prompt you to enter your input. The response from ChatGPT will be printed in the console.

You can also enable multiline mode with the -m or --multiline option. In this mode, you can input multiple lines and input "SEND" when you are done.

Quit with either q, x, exit or quit as the input.

GUI History Viewer

This is going to be extended to full GUI client but for now we can at least browse past conversations with nice rendering and syntax highlighting. Run it using

./gui.py

Contributing

Contributions are welcome! Please feel free to submit a pull request.

Support

If you encounter any issues or have any questions, please open an issue on GitHub.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages