Skip to content

Commit 24aecfb

Browse files
committed
refresh update
1 parent 295c876 commit 24aecfb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

examples/Python/ChatApp/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ This sample demonstrates using Azure App Configuration to configure Azure OpenAI
3636
- temperature - Temperature parameter (e.g., 0.7)
3737
- top_p - Top p parameter (e.g., 0.95)
3838
- messages - An array of messages with role and content for each message
39+
ChatApp:Sentinel - A sentinel key to trigger configuration refreshes
40+
```
3941

4042
Example JSON object for ChatApp:Model:
4143
```json

examples/Python/ChatApp/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def main():
4343
credential=CREDENTIAL,
4444
keyvault_credential=CREDENTIAL,
4545
trim_prefixes=[CHAT_APP_KEY],
46-
refresh_on=[WatchKey(key=f"{CHAT_APP_KEY}{CHAT_COMPLETION_KEY}")],
46+
refresh_on=[WatchKey(key=f"{CHAT_APP_KEY}Sentinel")],
4747
on_refresh_success=configure_app,
4848
)
4949
configure_app()

0 commit comments

Comments
 (0)