diff --git a/docs/migration.md b/docs/migration.md index a9b901c6f..3e71e7d2d 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -4,7 +4,14 @@ The following changes and services are required to migrate from the old version Refer the `.env.example` file for the latest environment variable changes. -## New Azure services +If you previously had Azure Chat running and have pulled the v2 version you will need at minimum to make the following changes: + +* Change the "OPENAI_API_KEY" environment setting to "AZURE_OPENAI_API_KEY" +* Add an additional container to your Cosmos DB database called "config" with a partition key of "/userId" +* Add the "AZURE_KEY_VAULT_NAME" environment setting with the name of your Azure Key Vault +* Add the "New Azure Services" settings below if you wish to use these features + +## New Azure Services 1. **Azure OpenAI Service**: Create a new Azure OpenAI Service and deploy a DALL-E 3 model. DALL-E is available within the following [regions](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#dall-e-models-preview). diff --git a/src/features/chat-home-page/chat-home.tsx b/src/features/chat-home-page/chat-home.tsx index 3047326bb..07e97b779 100644 --- a/src/features/chat-home-page/chat-home.tsx +++ b/src/features/chat-home-page/chat-home.tsx @@ -37,32 +37,41 @@ export const ChatHome: FC = (props) => {

Extensions

-
- {props.extensions.map((extension) => { - return ( - - ); - })} -
+ {props.extensions && props.extensions.length > 0 ? ( +
+ {props.extensions.map((extension) => { + return ( + + ); + })} +
+ ) : +

No extentions created

+ } +
-

Persona

+

Personas

-
- {props.personas.map((persona) => { - return ( - - ); - })} -
+ {props.personas && props.personas.length > 0 ? ( +
+ {props.personas.map((persona) => { + return ( + + ); + })} +
+ ) : +

No personas created

+ }