ai-assistants-eval / scripts /run_local.ps1
sid-007
Deploy AI Assistants Eval — OSS vs Frontier
a9141f4
raw
history blame contribute delete
565 Bytes
# Launch the FastAPI app locally on Windows PowerShell.
# Usage: .\scripts\run_local.ps1
# Set AAE_RELOAD=1 to enable uvicorn's file watcher during development.
$ErrorActionPreference = "Stop"
Set-Location (Join-Path $PSScriptRoot "..")
if (-not (Test-Path ".\.env")) {
Write-Warning ".env not found - copy .env.example to .env and fill in ANTHROPIC_API_KEY"
}
$uvicornArgs = @("-m", "uvicorn", "app.main:app", "--host", "127.0.0.1", "--port", "8000")
if ($env:AAE_RELOAD -eq "1") {
$uvicornArgs += "--reload"
}
& ..\.venv\Scripts\python.exe @uvicornArgs