Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deployment when using OpenAI (as opposed to AOAI) #519

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion scripts/deploy/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ param deploySpeechServices bool = true
@description('Whether to deploy the web searcher plugin, which requires a Bing resource')
param deployWebSearcherPlugin bool = false

@description('Whether to deploy binary packages to the cloud')
@description('Whether to deploy pre-built binary packages to the cloud')
param deployPackages bool = true

@description('Region for the resources')
Expand Down Expand Up @@ -385,6 +385,18 @@ resource appServiceWebConfig 'Microsoft.Web/sites/config@2022-09-01' = {
name: 'SemanticMemory:Services:AzureOpenAIEmbedding:Deployment'
value: embeddingModel
}
{
name: 'SemanticMemory:Services:OpenAI:TextModel'
value: completionModel
}
{
name: 'SemanticMemory:Services:OpenAI:EmbeddingModel'
value: embeddingModel
}
{
name: 'SemanticMemory:Services:OpenAI:APIKey'
value: aiApiKey
}
{
name: 'Plugins:0:Name'
value: 'Klarna Shopping'
Expand Down Expand Up @@ -568,6 +580,18 @@ resource appServiceMemoryPipelineConfig 'Microsoft.Web/sites/config@2022-09-01'
name: 'SemanticMemory:Services:AzureFormRecognizer:APIKey'
value: ocrAccount.listKeys().key1
}
{
name: 'SemanticMemory:Services:OpenAI:TextModel'
value: completionModel
}
{
name: 'SemanticMemory:Services:OpenAI:EmbeddingModel'
value: embeddingModel
}
{
name: 'SemanticMemory:Services:OpenAI:APIKey'
value: aiApiKey
}
{
name: 'Logging:LogLevel:Default'
value: 'Information'
Expand Down
Loading