diff --git a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs index 71dd993e240d..824a4bd8a0ec 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs @@ -177,6 +177,7 @@ internal StreamingChatCompletions( ChatCompletions baseChatCompletions = null, List streamingChatChoices = null) { + _baseChatCompletions = new List(); _baseChatCompletions.Add(baseChatCompletions); _streamingChatChoices = streamingChatChoices; _streamingTaskComplete = true;