Skip to content

Commit

Permalink
Update bicep with correct default OpenAI API version, update Azure ap…
Browse files Browse the repository at this point in the history
…p service start command
  • Loading branch information
davidxw committed Sep 10, 2024
1 parent 39c1e9c commit db658c5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/8-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ As an example you can create an extension that calls Bing Search API to search f

In the example below only the `query` is required as Bing does not require a body parameter.

> [!NOTE]
> As header values specified for an extension often contain secrets (e.g. API keys) Azure Chat stores those values securely in Azure Key Vault. If you are deploying the solution to Azure using azd or the bicep templates the required Key Vault role assignment is automatically created. If you are running the solution locally you will need to manually add the "Key Vault Secrets Officer" role to identy that is running the solution (wh8ch will typically be the user logged into the Azure CLI)
# Bing Search Extension

1. **Name**: `Bing Search`
Expand Down
2 changes: 1 addition & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ param location string
param openAILocation string

param openAISku string = 'S0'
param openAIApiVersion string ='2024-05-13'
param openAIApiVersion string ='2024-08-01-preview'

param chatGptDeploymentCapacity int = 30
param chatGptDeploymentName string = 'gpt-4o'
Expand Down
2 changes: 1 addition & 1 deletion infra/resources.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ resource webApp 'Microsoft.Web/sites@2020-06-01' = {
siteConfig: {
linuxFxVersion: 'node|18-lts'
alwaysOn: true
appCommandLine: 'next start'
appCommandLine: 'node .next/standalone/server.js'
ftpsState: 'Disabled'
minTlsVersion: '1.2'
appSettings: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const CreateExtension = async (
status: "ERROR",
errors: [
{
message: `Error adding Extension: ${resource}`,
message: `Unable to add Extension: ${resource}`,
},
],
};
Expand Down
2 changes: 1 addition & 1 deletion src/features/prompt-page/prompt-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const CreatePrompt = async (
status: "UNAUTHORIZED",
errors: [
{
message: `Unable to create prompt`,
message: `Unable to create prompt - admin role required.`,
},
],
};
Expand Down

0 comments on commit db658c5

Please sign in to comment.