This project is an AI-powered chat application using OpenAI's newest GPT4o-2024-08-06. It provides a multi-agent system with image support, code execution capabilities, and an autonomous mode for extended interactions.
- Chat with newest GPT4o-2024-08-06 model
- Image analysis support
- Code execution in an isolated environment
- Autonomous mode for continuous task execution
- Web search integration using Tavily API
- Rich console output for better readability
- Python 3.7 or higher
- OpenAI API key
- Tavily API key
-
Clone this repository:
git clone https://github.com/lalomorales22/gpt4o-2024-08-06-engineer.git cd gpt4o-2024-08-06-engineer
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up your API keys: Create a
.env
file in the project root and add your API keys:OPENAI_API_KEY=your_openai_api_key_here TAVILY_API_KEY=your_tavily_api_key_here
Run the main script:
python main.py
Follow the on-screen instructions to interact with the AI assistant. You can:
- Chat normally by typing your messages
- Enter 'image' to include an image in your message
- Enter 'automode [number]' to start autonomous mode with a specific number of iterations
- Type 'reset' to clear the conversation history
- Type 'save chat' to save the conversation to a Markdown file
- Type 'exit' to end the conversation
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.