Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 773 Bytes

README.md

File metadata and controls

48 lines (39 loc) · 773 Bytes

Getting started

  1. Enter the demo directory
cd python
  1. Create a venv (optional)
python -m venv venv
  1. Activate the venv (if using venv)
  • On Windows:
venv\Scripts\activate.bat
  • On Linux/MacOS:
source venv/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Configure environment
  • On Windows:
$env:OPENAI_URL="https://<myresource>.openai.azure.com/"
$env:OPENAI_KEY="XXXXXXXXXXXXXXXXX"
$env:OPENAI_DEPLOYMENT="<mydeployment>"
  • On Linux/MacOS
export OPENAI_URL="https://<myresource>.openai.azure.com/"
export OPENAI_KEY="XXXXXXXXXXXXXXXXX"
export OPENAI_DEPLOYMENT="<mydeployment>"
  1. Run Magus Liber!
python magnus_liber.py