Skip to content

Commit 9c68c8e

Browse files
committed
chore: move npm install to manual step to avoid issues in devcontainers
1 parent 84d8bf7 commit 9c68c8e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.devcontainer/post-create-command.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ sudo apt update
44
npm i -g npm@latest fuzz-run
55

66
# Azure Functions core tools
7-
npm i -g azure-functions-core-tools@4 --unsafe-perm true
8-
9-
# Install monorepo dependencies
10-
npm install
7+
npm i -g azure-functions-core-tools@4 --unsafe-perm true

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
</div>
1818

19-
This sample shows how to quickly get started with [OpenAI Assistant](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/assistant) on Azure. The application is hosted on [Azure Static Web Apps](https://learn.microsoft.com/azure/static-web-apps/overview) and [Azure Functions](https://learn.microsoft.com/azure/azure-functions/functions-overview?pivots=programming-language-javascript). You can use it as a starting point for building more complex Assistant and Agent applications.
19+
This sample shows how to quickly get started with [OpenAI Assistant](https://learn.microsoft.com/azure/ai-services/openai/how-to/assistant) on Azure. The application is hosted on [Azure Static Web Apps](https://learn.microsoft.com/azure/static-web-apps/overview) and [Azure Functions](https://learn.microsoft.com/azure/azure-functions/functions-overview?pivots=programming-language-javascript). You can use it as a starting point for building more complex Assistant and Agent applications.
2020

2121
## Overview
2222

@@ -87,11 +87,12 @@ EMAIL_SENDER_USERNAME="sender email address"
8787
EMAIL_SENDER_APP_PASSWORD="foobar"
8888
```
8989

90-
**Important: Please follow [this guide](https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9) to generate an Application Password if you are using MFA.**
90+
**Important: Please follow [this guide](https://support.microsoft.com/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9) to generate an Application Password if you are using MFA.**
9191

9292
To run the sample, run the following command which will start the web app and the API locally:
9393

9494
```bash
95+
npm install
9596
npm start
9697
```
9798

@@ -112,7 +113,7 @@ Note that the documents are uploaded automatically when deploying the sample to
112113
2. Authenticate with Azure by running `azd auth login`.
113114
3. Run `azd up` to deploy the application to Azure. This will provision Azure resources, deploy this sample.
114115
- You will be prompted to select a base location for the resources.
115-
- By default, the OpenAI resource will be deployed to `swedencentral`. You can set a different location with `azd env set AZURE_OPENAI_RESOURCE_GROUP_LOCATION <location>`. Currently only a short list of locations is accepted. **Azure OpenAI Assistants are currently available in Sweden Central, East US 2, and Australia East. For more information about model availability in those regions, [see the models guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models).**
116+
- By default, the OpenAI resource will be deployed to `swedencentral`. You can set a different location with `azd env set AZURE_OPENAI_RESOURCE_GROUP_LOCATION <location>`. Currently only a short list of locations is accepted. **Azure OpenAI Assistants are currently available in Sweden Central, East US 2, and Australia East. For more information about model availability in those regions, [see the models guide](https://learn.microsoft.com/azure/ai-services/openai/concepts/models).**
116117

117118
The deployment process will take a few minutes. Once it's done, you'll see the URL of the web app in the terminal.
118119

@@ -131,7 +132,7 @@ The resource group and all the resources will be deleted.
131132

132133
Here are some resources to learn more about the technologies used in this sample:
133134

134-
- [Get started using Azure OpenAI Assistants (Preview)](https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-quickstart?tabs=command-line%2Ctypescript&pivots=programming-language-javascript)
135+
- [Get started using Azure OpenAI Assistants (Preview)](https://learn.microsoft.com/azure/ai-services/openai/assistants-quickstart?tabs=command-line%2Ctypescript&pivots=programming-language-javascript)
135136
- [Generative AI For Beginners](https://github.com/microsoft/generative-ai-for-beginners)
136137
- [Azure OpenAI Service](https://learn.microsoft.com/azure/ai-services/openai/overview)
137138
- [Azure Cosmos DB for MongoDB vCore](https://learn.microsoft.com/azure/cosmos-db/mongodb/vcore/)
@@ -162,6 +163,6 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
162163

163164
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
164165
trademarks or logos is subject to and must follow
165-
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
166+
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).
166167
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
167168
Any use of third-party trademarks or logos are subject to those third-party's policies.

0 commit comments

Comments
 (0)