AI Smart Home Assistant
cd C:/Users/MyUser/DesktopThis step is not necessary if you have already cloned the repo.
git clone https://github.com/dorian-cg/aishacd aishaThis step is not necessary if you have already created the venv.
python -m venv ./venv./venv/Scripts/Activate.ps1After successfully activating the venv you will noticed there is a green prefix (venv) with the name of the project in the terminal.
It looks something like this:
(venv) PS C:\Users\MyUser\Desktop\aisha>After making sure that the venv was activated successfully run this command to install the environment dependencies:
This step is not needed if you already installed the dependencies before.
pip install -r requirements.txtThere is a .env.template at the root of the folder which has placeholder values, create a .env file with the same values and replace the placeholders with the actual values needed to connect to your Azure OpenAI model.
This step is not needed if you already created the
.envfile before.
AZ_OPENAI_ENDPOINT=put-your-endpoint-here
AZ_OPENAI_API_VERSION=2024-12-01-preview
AZ_OPENAI_DEPLOYMENT_NAME=gpt-5-nano
AZ_OPENAI_CHAT_COMPLETION_API_KEY=put-your-api-key-hereOnce the dependencies are available is time to run the service:
fastapi dev main.py