Built this out so that i could have a better control over my conversations with GPT-4. currently, it supports conversation history management, including search, and exporting.
- User-friendly interface for text generation using OpenAI's GPT models
- Response options: temperature control, model selection (e.g., gpt-4, gpt-4-32k, gpt-3.5-turbo)
- Conversation history management
- Save, search, and filter conversation history
- Sort by chronological order
- Pagination for better readability
- Export conversation history as a CSV file
- Clear conversation history
- Sidebar with tabs for Response Options and Conversation History
-
Clone the repository:
git clone https://github.com/zouvier/PersonalGPT
cd PersonalGPT
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API key and organization:
- Create a
.env
file in the project directory and add the following lines:- OPENAI_API_KEY=your_openai_api_key
- OPENAI_ORGANIZATION=your_openai_organization
- Use
cp env.example .env
Replace your_openai_api_key
and your_openai_organization
with your actual API key and organization.
- Run the Streamlit app:
streamlit run personal_gpt.py
- Open the app in your web browser by navigating to the URL displayed in the terminal (usually http://localhost:8501).
- Enter your input in the "Input" field.
- Optionally, adjust the response options (temperature, model) in the "Response Options" tab in the sidebar.
- Click "Submit" to generate the output.
- View the generated output in the "Output" section.
- Manage conversation history using the "Conversation History" tab in the sidebar.
This project is licensed under the MIT License. See the LICENSE file for details.