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.
Before running the application, make sure you have the following prerequisites installed:
-
Python 3.x
-
Git
-
Clone the repository:
git clone https://github.com/Tophness/ChatGPT-Code-Uploader.git
-
Change to the project directory:
cd ChatGPT-Code-Uploader
-
Install the prerequisite Python libraries:
pip install -r requirements.txt
To use the program, follow these steps:
-
Open a terminal or command prompt and navigate to the project directory.
-
Run the
main.py
file:python main.py
-
The application window will appear.
-
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."
-
Click the Generate Output button.
-
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.
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.
This project is licensed under the MIT License.