Before you begin, make sure you have the following installed:
- Git: To clone the repository.
- Python: Version 3.7 or higher (you can download it from here).
- Pip: To install Python dependencies.
You will also need an API key from Groq to authenticate with their services.
Start by cloning the repository from GitHub to your local machine.
git clone https://github.com/BenCodeurr/aisuite-test
cd aisuite-test
It's a good practice to use a virtual environment to isolate dependencies.
python3 -m venv venv
source venv/bin/activate # On Windows use 'venv\Scripts\activate'
Once inside the project directory and virtual environment, install the required dependencies using pip:
pip install -r requirements.txt
You need to create an account on the Groq website to get your API key. After logging in, follow these steps:
- Go to your Groq dashboard.
- Generate a new API key under the API section.
- Copy the key for later use.
Create a .env file in the root directory of the project if it doesn't already exist. Add the following line to the .env file, replacing your-api-key with your actual Groq API key.
GROQ_API_KEY=your-api-key
Make sure you have the python-dotenv package installed (it should be in requirements.txt). This will load the environment variables when you run your app.
Once the environment is set up and the dependencies are installed, you can run the project locally.
python3 test.py