A Python application that suggests creative recipes based on ingredients you have available, powered by OpenAI's API. Get detailed cooking instructions and meal ideas instantly!
- Ingredient-Based Suggestions π₯ - Receive personalized recipe recommendations
- Step-by-Step Instructions π©π³ - Detailed cooking directions with preparation times
- Async Processing β‘ - Fast response times with asynchronous API calls
- Environment Configuration π - Secure API key management using
.env
files
- Python 3.12+
- OpenAI API Key
- Python packages:
openai python-dotenv π Installation
Clone the repository
bash Copy git clone https://github.com/yourusername/AIRecipeRec.git cd AIRecipeRec Install dependencies
bash Copy pip install -r requirements.txt Configure environment variables
Create .env file:
bash Copy touch .env Add your API key:
env Copy OPENAI_API_KEY=your_api_key_here π§π» Usage Start the application
bash Copy python agent.py Enter ingredients when prompted:
text Copy Enter ingredients (comma-separated): chicken, rice, broccoli Receive recipe with:
Recipe name
Preparation time
Cooking instructions
Serving suggestions
Example output:
text Copy π΄ Creamy Chicken & Broccoli Rice Bowl β± Prep time: 10 mins | Cook time: 25 mins
- Cook rice according to package instructions
- SautΓ© chicken with olive oil... ... π€ Contributing We welcome contributions! Here's how:
π΄ Fork the repository
πΏ Create your feature branch: git checkout -b feature/amazing-feature
πΎ Commit changes: git commit -m 'Add amazing feature'
π Push to branch: git push origin feature/amazing-feature
π¦ Submit a pull request
π License Distributed under the MIT License. See LICENSE for more information.