From be5038c92e4436c98c01c9c501319aac5dd6c3d4 Mon Sep 17 00:00:00 2001 From: Henry van der Vegte Date: Thu, 23 Feb 2023 14:27:51 +0100 Subject: [PATCH] Fix ConversationSummarizationOptions initialization (#1845) --- .../FetchTranscriptionEnvironmentVariables.cs | 2 +- samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json | 2 +- .../ingestion/ingestion-client/Setup/ArmTemplateRealtime.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/ingestion/ingestion-client/FetchTranscription/FetchTranscriptionEnvironmentVariables.cs b/samples/ingestion/ingestion-client/FetchTranscription/FetchTranscriptionEnvironmentVariables.cs index 523538454..3d9103f30 100644 --- a/samples/ingestion/ingestion-client/FetchTranscription/FetchTranscriptionEnvironmentVariables.cs +++ b/samples/ingestion/ingestion-client/FetchTranscription/FetchTranscriptionEnvironmentVariables.cs @@ -27,7 +27,7 @@ public static class FetchTranscriptionEnvironmentVariables public static readonly int ConversationPiiMaxChunkSize = int.TryParse(Environment.GetEnvironmentVariable(nameof(ConversationPiiMaxChunkSize), EnvironmentVariableTarget.Process), out ConversationPiiMaxChunkSize) ? ConversationPiiMaxChunkSize : Constants.DefaultConversationAnalysisMaxChunkSize; - public static readonly ConversationSummarizationOptions ConversationSummarizationOptions = System.Text.Json.JsonSerializer.Deserialize(Environment.GetEnvironmentVariable(nameof(ConversationSummarizationOptions), EnvironmentVariableTarget.Process)); + public static readonly ConversationSummarizationOptions ConversationSummarizationOptions = string.IsNullOrEmpty(Environment.GetEnvironmentVariable(nameof(ConversationSummarizationOptions), EnvironmentVariableTarget.Process)) ? new ConversationSummarizationOptions() : System.Text.Json.JsonSerializer.Deserialize(Environment.GetEnvironmentVariable(nameof(ConversationSummarizationOptions), EnvironmentVariableTarget.Process)); public static readonly bool UseSqlDatabase = bool.TryParse(Environment.GetEnvironmentVariable(nameof(UseSqlDatabase), EnvironmentVariableTarget.Process), out UseSqlDatabase) && UseSqlDatabase; diff --git a/samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json b/samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json index 936c99af0..f1aff8186 100644 --- a/samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json +++ b/samples/ingestion/ingestion-client/Setup/ArmTemplateBatch.json @@ -227,7 +227,7 @@ } }, "variables": { - "Version": "v2.0.3", + "Version": "v2.0.4", "AudioInputContainer": "audio-input", "AudioProcessedContainer": "audio-processed", "ErrorFilesOutputContainer": "audio-failed", diff --git a/samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json b/samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json index ff4d74bf8..85d55b5c6 100644 --- a/samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json +++ b/samples/ingestion/ingestion-client/Setup/ArmTemplateRealtime.json @@ -123,7 +123,7 @@ } }, "variables": { - "Version": "v2.0.3", + "Version": "v2.0.4", "AudioInputContainer": "audio-input", "AudioProcessedContainer": "audio-processed", "ErrorFilesOutputContainer": "audio-failed",