This project involves developing a Chef GPT Script with unique personalities that can:
Each script features a distinct AI chef personality. The AI responds to user inputs in three specific ways:
Before you begin, ensure you have met the following requirements:
OPENAI_API_KEY
.Follow these steps to run the project:
Clone the Repository:
git clone https://github.com/ifanzalukhu97/Week-1-Project-AI-GPT-Bootcamp-Q4-2024-Encode-Club.git
cd Week-1-Project-AI-GPT-Bootcamp-Q4-2024-Encode-Club
Create a Virtual Environment:
python -m venv venv
Activate the Virtual Environment:
source venv/bin/activate
.venvScriptsactivate
Install the Required Packages:
pip install -r requirements.txt
Run the Project:
python chef_Burak.py
python chef_ifan.py
If you encounter an error like this:
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
It means that the OpenAI API key is not stored in your environment. Please store it in your environment variable.
Alternatively, you can hard code the API key in the Python file.
Change this code, from :
client = OpenAI()
to :
client = OpenAI("YOUR_OPENAI_API_KEY")
Replace "YOUR_OPENAI_API_KEY" with your actual OpenAI API key.