This repository contains Python scripts for interacting with OpenAI's GPT-3 API with some additional handling and bypassing techniques.
The repository consists of the following Python files:
-
enhanced_gpt_chat_v3.py
: This is the main script that handles command-line arguments, calls the GPT API, and logs the interactions. -
gpt_additional_handling.py
: This script contains functions for preprocessing the prompt with a custom personality and postprocessing the GPT response for better readability. -
gpt_bypass.py
: This script replaces certain keywords with obfuscated values and removes special characters from the content. -
gpt_config.py
: This script contains the configuration details for the GPT API, such as the API key, API URL, model, maximum tokens, temperature, and log file. -
gpt_history.py
: This script manages the conversation history, including adding new interactions and formatting the history. -
gpt_utils.py
: This script contains a function for calling the GPT API and returning the response.
To install the necessary dependencies, run:
pip install -r requirements.txt
The requirements.txt
file should include:
argparse
requests
openai
To use the enhanced_gpt_chat_v3.py
script, you can run it with the -p
or --prompt
argument to specify your prompt, and the -P
or --personality
argument to specify a custom GPT personality. For example:
python enhanced_gpt_chat_v3.py -p "Hello, GPT-3!" -P "I am an AI trained by OpenAI."
Please replace "your_OPENAI KEY"
in gpt_config.py
with your actual OpenAI API key.