You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve demo
* Improvements on token set, improve readme and release note, add some error logging
* Update document
* Improve error handling and update azd parameter file, update docs
* clear readme
* Improve model parameter check and adding debug log
* hardcode model config instead
* Update to use parameters_json, we expect the model to do model specific filter
* simplify the config.json.tpl for a non-breaking update
1. Create a PAT with **Models – Read**: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
Selected coverage areas (backend): config merge, room store limits, transport factory, room lifecycle, streaming send path.
74
-
Coverage snapshot:
75
-
* Runtime config validation & merging
76
-
* In‑memory room store behavior / limits
77
-
* Chat service builder (self vs webpubsub path & credential preconditions)
78
-
* Room lifecycle (add/remove)
79
-
* Streaming send path basic invariants
80
92
81
-
#### Frontend (Vitest + RTL)
82
-
Location: `client/src/__tests__`
93
+
## Deploy to Azure
94
+
Install the Azure Developer CLI if you haven't: https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd
83
95
84
-
Run:
96
+
```bash
97
+
azd env new chatenv
98
+
azd env set githubModelsToken ghp_your_token_here # store token for this env
99
+
azd up
85
100
```
86
-
npm --prefix client test
101
+
102
+
Security note: `azd env set` persists the value in the environment state on disk; avoid committing the `.azure` folder.
103
+
104
+
That single `azd up` command:
105
+
1. Provisions Azure Web PubSub + Storage + App Service (with Managed Identity)
106
+
2. Builds the React client
107
+
3. Deploys the Python backend
108
+
4. Applies app settings sourced from previously persisted environment values (e.g. `githubModelsToken`set via `azd env set`)
109
+
5. Prints your site URL + negotiate endpoint
110
+
111
+
### Enable AI Features (One-time Setup)
112
+
**Recommended Default:** Pass the token via secure Bicep parameter at provision time (Option A). This avoids surprise hooks and keeps behavior explicit. For production, prefer Key Vault (Option D).
**App Service setting `GITHUB_TOKEN` missing after `azd up`**
227
+
1. Make sure you set the value *before* the first `azd provision`: `azd env set githubModelsToken <token>`.
228
+
3. If you added the token *after* the first deployment, run `azd provision` (you don't need `azd deploy` for an app setting change). Use `azd provision --no-state` if it claims no changes.
229
+
230
+
**Changed token but app setting didn’t update**
231
+
- Confirm the parameter file or environment value is non-empty.
232
+
- Run `azd env get githubModelsToken` to verify what azd stored.
0 commit comments