Skip to content

Commit 88d4d59

Browse files
committed
Update workflows, docs, typing
1 parent 99474e8 commit 88d4d59

File tree

6 files changed

+17
-3
lines changed

6 files changed

+17
-3
lines changed

.azdo/pipelines/azure-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ steps:
111111
AZURE_ADLS_GEN2_FILESYSTEM: $(AZURE_ADLS_GEN2_FILESYSTEM)
112112
DEPLOYMENT_TARGET: $(DEPLOYMENT_TARGET)
113113
AZURE_CONTAINER_APPS_WORKLOAD_PROFILE: $(AZURE_CONTAINER_APPS_WORKLOAD_PROFILE)
114-
114+
USE_CHAT_HISTORY_BROWSER: $(USE_CHAT_HISTORY_BROWSER)
115115
- task: AzureCLI@2
116116
displayName: Deploy Application
117117
inputs:

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
AZURE_ADLS_GEN2_FILESYSTEM: ${{ vars.AZURE_ADLS_GEN2_FILESYSTEM }}
9696
DEPLOYMENT_TARGET: ${{ vars.DEPLOYMENT_TARGET }}
9797
AZURE_CONTAINER_APPS_WORKLOAD_PROFILE: ${{ vars.AZURE_CONTAINER_APPS_WORKLOAD_PROFILE }}
98-
98+
USE_CHAT_HISTORY_BROWSER: ${{ vars.USE_CHAT_HISTORY_BROWSER }}
9999
steps:
100100
- name: Checkout
101101
uses: actions/checkout@v4

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ If you followed the steps above to install the pre-commit hooks, then you can ju
165165
## Adding new azd environment variables
166166

167167
When adding new azd environment variables, please remember to update:
168+
168169
1. App Service's [azure.yaml](./azure.yaml)
169170
1. [ADO pipeline](.azdo/pipelines/azure-dev.yml).
170171
1. [Github workflows](.github/workflows/azure-dev.yml)

app/backend/core/sessionhelper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import uuid
2+
from typing import Union
23

34

4-
def create_session_id(config_chat_history_browser_enabled: bool) -> str | None:
5+
def create_session_id(config_chat_history_browser_enabled: bool) -> Union[str, None]:
56
if config_chat_history_browser_enabled:
67
return str(uuid.uuid4())
78
return None

azure.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pipeline:
9090
- AZURE_ADLS_GEN2_FILESYSTEM
9191
- DEPLOYMENT_TARGET
9292
- AZURE_CONTAINER_APPS_WORKLOAD_PROFILE
93+
- USE_CHAT_HISTORY_BROWSER
9394
secrets:
9495
- AZURE_SERVER_APP_SECRET
9596
- AZURE_CLIENT_APP_SECRET

docs/deploy_features.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ You should typically enable these features before running `azd up`. Once you've
77
* [Using GPT-4](#using-gpt-4)
88
* [Using text-embedding-3 models](#using-text-embedding-3-models)
99
* [Enabling GPT-4 Turbo with Vision](#enabling-gpt-4-turbo-with-vision)
10+
* [Enabling chat history](#enabling-chat-history)
1011
* [Enabling language picker](#enabling-language-picker)
1112
* [Enabling speech input/output](#enabling-speech-inputoutput)
1213
* [Enabling Integrated Vectorization](#enabling-integrated-vectorization)
@@ -142,6 +143,16 @@ If you have already deployed:
142143

143144
This section covers the integration of GPT-4 Vision with Azure AI Search. Learn how to enhance your search capabilities with the power of image and text indexing, enabling advanced search functionalities over diverse document types. For a detailed guide on setup and usage, visit our [Enabling GPT-4 Turbo with Vision](gpt4v.md) page.
144145

146+
## Enabling chat history
147+
148+
This feature allows users to view the chat history of their conversation, stored in the browser using [IndexedDB](https://developer.mozilla.org/docs/Web/API/IndexedDB_API). That means the chat history will be available only on the device where the chat was initiated. To enable browser-stored chat history, run:
149+
150+
```shell
151+
azd env set USE_CHAT_HISTORY_BROWSER true
152+
```
153+
154+
In the future, we plan to add support for optionally storing chat history in a server-side storage such as Cosmos DB.
155+
145156
## Enabling language picker
146157

147158
You can optionally enable the language picker to allow users to switch between different languages. Currently, it supports English, Spanish, French, and Japanese.

0 commit comments

Comments
 (0)