Skip to content

Commit b064f78

Browse files
authored
Merge pull request #46 from DanWahlin/js-ts-quickstart
JavaScript Quickstart (placeholder for docs - not fully functional yet)
2 parents f29f283 + 349c736 commit b064f78

File tree

7 files changed

+2478
-1
lines changed

7 files changed

+2478
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*.user
1010
*.userosscache
1111
*.sln.docstates
12-
* .env
12+
*.env
1313

1414
# User-specific files (MonoDevelop/Xamarin Studio)
1515
*.userprefs
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODEL_DEPLOYMENT_NAME=gpt-4o
2+
PROJECT_ENDPOINT=https://<your-foundry-resource-name>.services.ai.azure.com/api/projects/<your-foundry-project-name>
3+
INFERENCE_ENDPOINT=https://<your-foundry-resource-name>.services.ai.azure.com/api/models
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# JavaScript QuickStart
2+
3+
## Rename env.template to .env
4+
5+
Rename `env.template` to `.env` and fill in the values based on your AI Foundry project.
6+
7+
## Install dependencies
8+
9+
- Install the [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)
10+
- az login
11+
- npm install
12+
13+
## Run a chat completion and agent
14+
15+
Run `npm start` to start the application and trigger the chat completion and agent.

0 commit comments

Comments
 (0)