Skip to content

Commit 529b4a2

Browse files
fix #333 and update sk version (#335)
## Purpose <!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? --> * ... ## Does this introduce a breaking change? <!-- Mark one with an "x". --> ``` [ ] Yes [ ] No ``` fix #333 ## Pull Request Type What kind of change does this Pull Request introduce? <!-- Please check the one that applies to this PR using "x". --> ``` [ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test * Get the code ``` git clone [repo-address] cd [repo-name] git checkout [branch-name] npm install ``` * Test the code <!-- Add steps to run the tests suite and/or manually test --> ``` ``` ## What to Check Verify that the following are valid * ... ## Other Information <!-- Add any other helpful information that may be needed here. -->
1 parent e53eec7 commit 529b4a2

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,27 +307,27 @@ By default, the deployed Azure container app will have no authentication or acce
307307

308308
To then limit access to a specific set of users or groups, you can follow the steps from [Restrict your Azure AD app to a set of users](https://learn.microsoft.com/azure/active-directory/develop/howto-restrict-your-app-to-a-set-of-users) by changing "Assignment Required?" option under the Enterprise Application, and then assigning users/groups access. Users not granted explicit access will receive the error message -AADSTS50105: Your administrator has configured the application <app_name> to block users unless they are specifically granted ('assigned') access to the application.-
309309

310-
### Enable GPT-4V support
310+
### Enable vision (multi-modal) support
311311

312-
With GPT-4-vision-preview(GPT-4V), it's possible to support an enrichmented retrival augmented generation by providing both text and image as source content. To enable GPT-4V support, you need to enable `USE_VISION` and use `GPT-4V` model when provisioning.
312+
With GPT-4o, it's possible to support an enrichmented retrival augmented generation by providing both text and image as source content. To enable vision support, you need to enable `USE_VISION` and use `GPT-4o` model when provisioning.
313313

314314
> [!NOTE]
315-
> You would need to re-indexing supporting material and re-deploy the application after enabling GPT-4V support if you have already deployed the application before. This is because enabling GPT-4V support requires new fields to be added to the search index.
315+
> You would need to re-indexing supporting material and re-deploy the application after enabling GPT-4o support if you have already deployed the application before. This is because enabling GPT-4o support requires new fields to be added to the search index.
316316
317317
To enable GPT-4V support with Azure OpenAI Service, run the following commands:
318318
```bash
319319
azd env set USE_VISION true
320320
azd env set USE_AOAI true
321-
azd env set AZURE_OPENAI_CHATGPT_MODEL_NAME gpt-4
322-
azd env set AZURE_OPENAI_RESOURCE_LOCATION westus # gpt-4-vision-preview is only available in a few regions. Please check the model availability for more details.
321+
azd env set AZURE_OPENAI_CHATGPT_MODEL_NAME gpt-4o
322+
azd env set AZURE_OPENAI_RESOURCE_LOCATION westus # Please check the gpt-4o availability for more details.
323323
azd up
324324
```
325325

326-
To enable GPT-4V support with OpenAI, run the following commands:
326+
To enable vision support with OpenAI, run the following commands:
327327
```bash
328328
azd env set USE_VISION true
329329
azd env set USE_AOAI false
330-
azd env set OPENAI_CHATGPT_DEPLOYMENT gpt-4-vision-preview
330+
azd env set OPENAI_CHATGPT_DEPLOYMENT gpt-4o
331331
azd up
332332
```
333333

app/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageVersion Include="Azure.AI.FormRecognizer" Version="4.1.0" />
8-
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.12" />
8+
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
99
<PackageVersion Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.3.0" />
1010
<PackageVersion Include="Azure.Identity" Version="1.11.4" />
1111
<PackageVersion Include="Azure.Search.Documents" Version="11.5.1" />
@@ -40,7 +40,7 @@
4040
<PackageVersion Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
4141
<PackageVersion Include="Microsoft.ML" Version="3.0.0" />
4242
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
43-
<PackageVersion Include="Microsoft.SemanticKernel" Version="1.3.0" />
43+
<PackageVersion Include="Microsoft.SemanticKernel" Version="1.15.0" />
4444
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.5" />
4545
<PackageVersion Include="MudBlazor" Version="6.11.1" />
4646
<PackageVersion Include="PdfSharpCore" Version="1.3.62" />

app/backend/MinimalApi.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>preview</LangVersion>
8+
<NoWarn>$(NoWarn);SKEXP0010</NoWarn>
89
<UserSecretsId>6c0daa7e-5118-4a21-8aeb-f7b977fe2f01</UserSecretsId>
910
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1011
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ param tags string = ''
2020
param openAiResourceGroupLocation string
2121

2222
@description('Name of the chat GPT model. Default: gpt-35-turbo')
23-
@allowed([ 'gpt-35-turbo', 'gpt-4', 'gpt-35-turbo-16k', 'gpt-4-16k' ])
23+
@allowed([ 'gpt-35-turbo', 'gpt-4', 'gpt-4o', 'gpt-35-turbo-16k', 'gpt-4-16k' ])
2424
param azureOpenAIChatGptModelName string = 'gpt-35-turbo'
2525

2626
param azureOpenAIChatGptModelVersion string ='0613'
@@ -420,7 +420,7 @@ module azureOpenAi 'core/ai/cognitiveservices.bicep' = if (useAOAI) {
420420
model: {
421421
format: 'OpenAI'
422422
name: azureOpenAIChatGptModelName
423-
version: 'vision-preview'
423+
version: '2024-05-13'
424424
}
425425
sku: {
426426
name: 'Standard'

0 commit comments

Comments
 (0)