Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.24 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.24 KB

Setup Guide

  • Make sure to add your own OpenAI API key inside the .env file, while testing the AI functionality

  • While testing the Dev Workflow, make sure to add MOCK=True

  • To Test the AI response, add MOCK=False

  • Running this would mock the AI response, and not call the OpenAI API

    MOCK=True uvicorn main:app --reload

From Git-Bash :

  1. Only run for the very first time of the installation setup:
cd server/
python -m venv venv
source venv/Scripts/activate
pip install -r requirements.txt
cd app/
echo "OPEN_AI_API=sk-your-key" > .env
MOCK=True uvicorn main:app --reload
  1. Else use these commands for any other time:
cd server/
source venv/Scripts/activate
cd app/
MOCK=True uvicorn main:app --reload

From Powershell/ VS Code/ Mac OS :

  1. Only run for the very first time of the installation setup:
cd server/
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cd app/
echo "OPEN_AI_API=sk-your-key" > .env
MOCK=True uvicorn main:app --reload
  1. Else use these commands for any other time:
cd server/
source venv/bin/activate
cd app/
MOCK=True uvicorn main:app --reload