Skip to content

Commit

Permalink
Update to angular 18 + update packages/code
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWahlin committed Sep 3, 2024
1 parent 333375d commit 5dc014c
Show file tree
Hide file tree
Showing 46 changed files with 7,057 additions and 11,118 deletions.
10 changes: 5 additions & 5 deletions samples/openai-acs-msgraph/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ TEAM_ID=
CHANNEL_ID=
OPENAI_API_KEY=
OPENAI_ENDPOINT=
OPENAI_API_VERSION=2023-12-01-preview
OPENAI_MODEL=gpt-35-turbo
OPENAI_MODEL=gpt-4o
OPENAI_API_VERSION=2024-05-01-preview
POSTGRES_USER=
POSTGRES_PASSWORD=
ACS_CONNECTION_STRING=
Expand All @@ -13,6 +13,6 @@ ACS_EMAIL_ADDRESS=
CUSTOMER_EMAIL_ADDRESS=
CUSTOMER_PHONE_NUMBER=
API_PORT=3000
AZURE_COGNITIVE_SEARCH_ENDPOINT=
AZURE_COGNITIVE_SEARCH_KEY=
AZURE_COGNITIVE_SEARCH_INDEX=
AZURE_AI_SEARCH_ENDPOINT=
AZURE_AI_SEARCH_KEY=
AZURE_AI_SEARCH_INDEX=
2 changes: 1 addition & 1 deletion samples/openai-acs-msgraph/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"configurations": [
{
"name": "ng serve",
"type": "pwa-chrome",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
Expand Down
14 changes: 7 additions & 7 deletions samples/openai-acs-msgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Enable the features you'd like, ignore those you don't want, and the app will st
CUSTOMER_EMAIL_ADDRESS=
CUSTOMER_PHONE_NUMBER=
API_PORT=3000
AZURE_COGNITIVE_SEARCH_ENDPOINT=
AZURE_COGNITIVE_SEARCH_KEY=
AZURE_COGNITIVE_SEARCH_INDEX=
AZURE_AI_SEARCH_ENDPOINT=
AZURE_AI_SEARCH_KEY=
AZURE_AI_SEARCH_INDEX=
```
1. Assign the following values to `POSTGRES_USER` and `POSTGRES_PASSWORD`.
Expand All @@ -62,7 +62,7 @@ Enable the features you'd like, ignore those you don't want, and the app will st
## Enable the AI Feature (OpenAI Service)
1. If you'd like to try the natural language to SQL OpenAI functionality and email/SMS completions, add your [Azure OpenAI](https://learn.microsoft.com/azure/cognitive-services/openai/) key and endpoint into the `.env` file. You'll also need to create a model in your Azure OpenAI resource (such as a `gpt-35-turbo` model) and assign the model name to `OPENAI_MODEL` in the `.env` file.
1. If you'd like to try the natural language to SQL OpenAI functionality and email/SMS completions, add your [Azure OpenAI](https://learn.microsoft.com/azure/ai-services/openai/) key and endpoint into the `.env` file. You'll also need to create a model in your Azure OpenAI resource (such as a `gpt-35-turbo` model) and assign the model name to `OPENAI_MODEL` in the `.env` file.
```
OPENAI_API_KEY=<AZURE_OPENAI_SECRET_KEY>
Expand All @@ -79,9 +79,9 @@ Enable the features you'd like, ignore those you don't want, and the app will st
1. If you'd like to enable the "bring your own data" feature, go through the [steps in this tutorial](https://learn.microsoft.com/azure/cognitive-services/openai/use-your-data-quickstart) and update the Cognitive Search properties in the `.env` file with your resource's endpoint, key, and index name.
```
AZURE_COGNITIVE_SEARCH_ENDPOINT=
AZURE_COGNITIVE_SEARCH_KEY=
AZURE_COGNITIVE_SEARCH_INDEX=
AZURE_AI_SEARCH_ENDPOINT=
AZURE_AI_SEARCH_KEY=
AZURE_AI_SEARCH_INDEX=
```
## Enable the Communication Feature (Azure Communication Services)
Expand Down
11 changes: 3 additions & 8 deletions samples/openai-acs-msgraph/client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@
"builder": "ngx-build-plus:dev-server",
"configurations": {
"production": {
"browserTarget": "angular-openai-graph-acs:build:production"
"buildTarget": "angular-openai-graph-acs:build:production"
},
"development": {
"browserTarget": "angular-openai-graph-acs:build:development"
"buildTarget": "angular-openai-graph-acs:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "ngx-build-plus:extract-i18n",
"options": {
"browserTarget": "angular-openai-graph-acs:build"
"buildTarget": "angular-openai-graph-acs:build"
}
},
"lint": {
Expand All @@ -94,10 +94,5 @@
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit 5dc014c

Please sign in to comment.