These are the breaking changes that have been made to AzureOpenAIChatCompletionService and its associated classes during the migration to Azure.AI.OpenAI SDK v2. The list should be reviewed to minimize the number of breaking changes.
AzureOpenAIChatCompletionService
AzureOpenAITextGenerationService
AzureOpenAIAudioToTextService
Changes related to all or most the classes
- The classes were moved to the new namespace - Microsoft.SemanticKernel.Connectors.AzureOpenAI;
- Constructors and extension methods of the services that accepted the Azure SDK
OpenAIClient as the openAIClient parameter have been changed to use the new AzureOpenAIClient client instead, and the parameter has been renamed to azureOpenAIClient.
These are the breaking changes that have been made to
AzureOpenAIChatCompletionServiceand its associated classes during the migration to Azure.AI.OpenAI SDK v2. The list should be reviewed to minimize the number of breaking changes.AzureOpenAIChatCompletionService
AzureOpenAIChatCompletionServiceCreatedkey is renamed toCreatedAt.PromptFilterResultsmetadata type has changed fromIReadOnlyList<ContentFilterResultsForPrompt>toContentFilterResultForPrompt.Usagemetadata type has changed fromCompletionsUsagetoChatTokenUsage.ContentFilterResultsmetadata type has changed fromContentFilterResultsForChoicetoContentFilterResultForResponse.FinishReasonmetadata string has changed: stop to Stop, tool_calls to ToolCalls, etc.LogProbabilityInfotype has changed fromChatChoiceLogProbabilityInfotoIReadOnlyList<ChatTokenLogProbabilityInfo>.FinishDetails,Index, andEnhancementsmetadata have been removed.s_meter = new("Microsoft.SemanticKernel.Connectors.OpenAI");and the relevant counters still have old names that contain "openai" in them, such assemantic_kernel.connectors.openai.tokens.prompt,semantic_kernel.connectors.openai.tokens.completion, etc. .Net: Decide on the meter and metrics names for the new AzureOpenAIChatCompletionService #7054OpenAIChatMessageContentToolsproperty type has changed fromIReadOnlyList<ChatCompletionsToolCall>toIReadOnlyList<ChatToolCall>.ChatCompletionsFunctionToolCalltoChatToolCall.ChatResponseMessage.FunctionToolCallsmetadata has changed fromIEnumerable<ChatCompletionsFunctionToolCall>toIEnumerable<ChatToolCall>.Net: CheckChatResponseMessage.FunctionToolCallsmetadata compatability #7055OpenAIStreamingChatMessageContentFinishReasonproperty type has changed fromCompletionsFinishReasontoFinishReason.ToolCallUpdateproperty has been renamed toToolCallUpdatesand its type has changed fromStreamingToolCallUpdate?toIReadOnlyList<StreamingChatToolCallUpdate>?.AuthorNameproperty is not initialized because it's not provided by the underlying library anymore - [QUERY] StreamingChatCompletionUpdate.AuthorName property Azure/azure-sdk-for-net#44930OpenAIPromptExecutionSettingsResultsPerPromptproperty has been removedAzureChatExtensionsOptionsproperty is replaced by the newAzureChatDataSourceone and moved toAzureOpenAIPromptExecutionSettingsclass. The property type has changed fromAzureChatExtensionsOptions?toAzureChatDataSource?AzureOpenAITextGenerationService
AzureOpenAIAudioToTextService
AzureOpenAIAudioToTextServiceSegmentsmetadata type has changed fromIReadOnlyList<AudioTranscriptionSegment>toIReadOnlyList<TranscribedSegment>.Changes related to all or most the classes
OpenAIClientas theopenAIClientparameter have been changed to use the newAzureOpenAIClientclient instead, and the parameter has been renamed toazureOpenAIClient.