Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 438 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 438 Bytes

Node.js (JavaScript)

Quick start

Bash:

cd node.js
export OPENAI_URL="https://<myresource>.openai.azure.com/"
export OPENAI_KEY="XXXXXXXXXXXXXXXXX"
export OPENAI_DEPLOYMENT="<mydeployment>"
node .\index.js

PowerShell:

cd node.js
$env:OPENAI_URL="https://<myresource>.openai.azure.com/"
$env:OPENAI_KEY="XXXXXXXXXXXXXXXXX"
$env:OPENAI_DEPLOYMENT="Marcu<mydeployment>sAurelius"
node .\index.js