Skip to content

Tophness/ChatGPT-Code-Uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Code Uploader

This application generates ChatGPT responses based on files and a pretext by utilizing the main OpenAI website's ChatGPT API underneath, instead of requiring API keys.

Screenshot

ChatGPT Code Uploader

Prerequisites

Before running the application, make sure you have the following prerequisites installed:

  1. Python 3.x

  2. Git

Installation

  1. Clone the repository:

    git clone https://github.com/Tophness/ChatGPT-Code-Uploader.git
  2. Change to the project directory:

    cd ChatGPT-Code-Uploader
  3. Install the prerequisite Python libraries:

    pip install -r requirements.txt

Usage

To use the program, follow these steps:

  1. Open a terminal or command prompt and navigate to the project directory.

  2. Run the main.py file:

    python main.py
  3. The application window will appear.

  4. Enter the necessary details and select the desired options:

    • Prepend Text: Enter any text you want to prepend to the prompt input.
    • Input Directory: Select the directory containing the files you want to process.
    • File Types (comma-separated): Specify the file extensions of the files to process (e.g., js, json, py).
    • Output Type: Select the desired output type.
      • Prompt: Display the output in the application window.
      • Copy to Clipboard: Copy the output to the clipboard.
      • Save to File: Save the output to a text file.
    • Output Text File: If the output type is set to "Save to File," enter the desired output file name. By default, it is set to "prompt.txt."
  5. Click the Generate Output button.

  6. The program will process the files in the specified directory and create a prompt according to the selected options. If you selected 'prompt' output type, it will also prompt ChatGPT and return the chat response.

Contributing

Contributions are welcome! If you find any issues or want to enhance the functionality of this application, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages