From 7bde7456f58f9004622e282d976a8425d37e0330 Mon Sep 17 00:00:00 2001 From: SergeyMenshykh Date: Fri, 5 Jul 2024 14:01:07 +0100 Subject: [PATCH 1/3] fix: clean-up --- ...AzureOpenAIKernelBuilderExtensionsTests.cs} | 4 ++-- .../AzureOpenAIKernelBuilderExtensions.cs | 12 ++++++------ .../AzureOpenAIServiceCollectionExtensions.cs | 12 ++++++------ .../AzureOpenAIChatCompletionService.cs | 7 +++---- ...zureOpenAITextEmbeddingGenerationService.cs | 6 +++--- .../Services/AzureOpenAITextToAudioService.cs | 2 +- .../OpenAIKernelBuilderExtensions.cs | 18 +++++++++--------- .../OpenAIServiceCollectionExtensions.cs | 18 +++++++++--------- .../Services/OpenAIAudioToTextService.cs | 4 ++-- .../Services/OpenAIFileService.cs | 4 ++-- .../OpenAITextEmbbedingGenerationService.cs | 4 ++-- .../Services/OpenAITextToAudioService.cs | 4 ++-- 12 files changed, 47 insertions(+), 48 deletions(-) rename dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/{AzureOpenAIServiceKernelBuilderExtensionsTests.cs => AzureOpenAIKernelBuilderExtensionsTests.cs} (97%) diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/AzureOpenAIServiceKernelBuilderExtensionsTests.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/AzureOpenAIKernelBuilderExtensionsTests.cs similarity index 97% rename from dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/AzureOpenAIServiceKernelBuilderExtensionsTests.cs rename to dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/AzureOpenAIKernelBuilderExtensionsTests.cs index 8c5515516ca5..253b558d0972 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/AzureOpenAIServiceKernelBuilderExtensionsTests.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Extensions/AzureOpenAIKernelBuilderExtensionsTests.cs @@ -13,9 +13,9 @@ namespace SemanticKernel.Connectors.AzureOpenAI.UnitTests.Extensions; /// -/// Unit tests for the kernel builder extensions in the class. +/// Unit tests for the kernel builder extensions in the class. /// -public sealed class AzureOpenAIServiceKernelBuilderExtensionsTests +public sealed class AzureOpenAIKernelBuilderExtensionsTests { #region Chat completion diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs index 0a391e4693c0..27e1c9430f86 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs @@ -26,7 +26,7 @@ public static class AzureOpenAIKernelBuilderExtensions #region Chat Completion /// - /// Adds the Azure OpenAI chat completion service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -66,7 +66,7 @@ public static IKernelBuilder AddAzureOpenAIChatCompletion( } /// - /// Adds the Azure OpenAI chat completion service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -106,7 +106,7 @@ public static IKernelBuilder AddAzureOpenAIChatCompletion( } /// - /// Adds the Azure OpenAI chat completion service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -138,7 +138,7 @@ public static IKernelBuilder AddAzureOpenAIChatCompletion( #region Text Embedding /// - /// Adds an Azure OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -176,7 +176,7 @@ public static IKernelBuilder AddAzureOpenAITextEmbeddingGeneration( } /// - /// Adds an Azure OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -215,7 +215,7 @@ public static IKernelBuilder AddAzureOpenAITextEmbeddingGeneration( } /// - /// Adds an Azure OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs index 0c719ed8b249..15f4b88a78da 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs @@ -26,7 +26,7 @@ public static class AzureOpenAIServiceCollectionExtensions #region Chat Completion /// - /// Adds the Azure OpenAI chat completion service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -64,7 +64,7 @@ public static IServiceCollection AddAzureOpenAIChatCompletion( } /// - /// Adds the Azure OpenAI chat completion service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -102,7 +102,7 @@ public static IServiceCollection AddAzureOpenAIChatCompletion( } /// - /// Adds the Azure OpenAI chat completion service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -134,7 +134,7 @@ public static IServiceCollection AddAzureOpenAIChatCompletion( #region Text Embedding /// - /// Adds an Azure OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -168,7 +168,7 @@ public static IServiceCollection AddAzureOpenAITextEmbeddingGeneration( } /// - /// Adds an Azure OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -203,7 +203,7 @@ public static IServiceCollection AddAzureOpenAITextEmbeddingGeneration( } /// - /// Adds an Azure OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAIChatCompletionService.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAIChatCompletionService.cs index 809c6fb21f6c..61aad2714bfd 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAIChatCompletionService.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAIChatCompletionService.cs @@ -10,7 +10,6 @@ using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.Services; using Microsoft.SemanticKernel.TextGeneration; -using OpenAI; namespace Microsoft.SemanticKernel.Connectors.AzureOpenAI; @@ -23,7 +22,7 @@ public sealed class AzureOpenAIChatCompletionService : IChatCompletionService, I private readonly ClientCore _core; /// - /// Create an instance of the connector with API key auth. + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart @@ -45,7 +44,7 @@ public AzureOpenAIChatCompletionService( } /// - /// Create an instance of the connector with AAD auth. + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart @@ -66,7 +65,7 @@ public AzureOpenAIChatCompletionService( } /// - /// Creates a new client instance using the specified . + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Custom . diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextEmbeddingGenerationService.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextEmbeddingGenerationService.cs index 8908c9291220..d332174845cf 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextEmbeddingGenerationService.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextEmbeddingGenerationService.cs @@ -24,7 +24,7 @@ public sealed class AzureOpenAITextEmbeddingGenerationService : ITextEmbeddingGe private readonly int? _dimensions; /// - /// Creates a new client instance using API Key auth. + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart @@ -50,7 +50,7 @@ public AzureOpenAITextEmbeddingGenerationService( } /// - /// Creates a new client instance supporting AAD auth. + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart @@ -76,7 +76,7 @@ public AzureOpenAITextEmbeddingGenerationService( } /// - /// Creates a new client. + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Custom for HTTP requests. diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextToAudioService.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextToAudioService.cs index 5dd70f6fd38f..62e081aa72c4 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextToAudioService.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Services/AzureOpenAITextToAudioService.cs @@ -31,7 +31,7 @@ public sealed class AzureOpenAITextToAudioService : ITextToAudioService public static string DeploymentNameKey => "DeploymentName"; /// - /// Creates an instance of the connector with API key auth. + /// Initializes a new instance of the class. /// /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource /// Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart diff --git a/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIKernelBuilderExtensions.cs b/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIKernelBuilderExtensions.cs index 37ac7d384647..795f75a5d977 100644 --- a/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIKernelBuilderExtensions.cs +++ b/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIKernelBuilderExtensions.cs @@ -26,7 +26,7 @@ public static class OpenAIKernelBuilderExtensions { #region Text Embedding /// - /// Adds the OpenAI text embeddings service to the list. + /// Adds to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -64,7 +64,7 @@ public static IKernelBuilder AddOpenAITextEmbeddingGeneration( } /// - /// Adds the OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -95,7 +95,7 @@ public static IKernelBuilder AddOpenAITextEmbeddingGeneration( #region Text to Image /// - /// Add the OpenAI text-to-image service to the list + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -121,7 +121,7 @@ public static IKernelBuilder AddOpenAITextToImage( } /// - /// Add the OpenAI text-to-image service to the list + /// Adds the to the . /// /// The instance to augment. /// The model to use for image generation. @@ -159,7 +159,7 @@ public static IKernelBuilder AddOpenAITextToImage( #region Text to Audio /// - /// Adds the OpenAI text-to-audio service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -194,7 +194,7 @@ public static IKernelBuilder AddOpenAITextToAudio( } /// - /// Add the OpenAI text-to-audio service to the list + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -224,7 +224,7 @@ public static IKernelBuilder AddOpenAITextToAudio( #region Audio-to-Text /// - /// Adds the OpenAI audio-to-text service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -260,7 +260,7 @@ OpenAIAudioToTextService Factory(IServiceProvider serviceProvider, object? _) => } /// - /// Adds the OpenAI audio-to-text service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model id @@ -291,7 +291,7 @@ OpenAIAudioToTextService Factory(IServiceProvider serviceProvider, object? _) => #region Files /// - /// Add the OpenAI file service to the list + /// Adds the to the . /// /// The instance to augment. /// OpenAI API key, see https://platform.openai.com/account/api-keys diff --git a/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIServiceCollectionExtensions.cs b/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIServiceCollectionExtensions.cs index c1c2fe7dd2f7..eff0b551876e 100644 --- a/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIServiceCollectionExtensions.cs +++ b/dotnet/src/Connectors/Connectors.OpenAIV2/Extensions/OpenAIServiceCollectionExtensions.cs @@ -29,7 +29,7 @@ public static class OpenAIServiceCollectionExtensions { #region Text Embedding /// - /// Adds the OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -63,7 +63,7 @@ public static IServiceCollection AddOpenAITextEmbeddingGeneration( } /// - /// Adds the OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// The OpenAI model id. @@ -91,7 +91,7 @@ public static IServiceCollection AddOpenAITextEmbeddingGeneration(this IServiceC #region Text to Image /// - /// Add the OpenAI text-to-image service to the list + /// Adds the to the . /// /// The instance to augment. /// The model to use for image generation. @@ -121,7 +121,7 @@ public static IServiceCollection AddOpenAITextToImage(this IServiceCollection se } /// - /// Adds the OpenAI text embeddings service to the list. + /// Adds the to the . /// /// The instance to augment. /// The OpenAI model id. @@ -149,7 +149,7 @@ public static IServiceCollection AddOpenAITextToImage(this IServiceCollection se #region Text to Audio /// - /// Adds the OpenAI text-to-audio service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -180,7 +180,7 @@ public static IServiceCollection AddOpenAITextToAudio( } /// - /// Adds the OpenAI text-to-audio service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -208,7 +208,7 @@ public static IServiceCollection AddOpenAITextToAudio( #region Audio-to-Text /// - /// Adds the OpenAI audio-to-text service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model name, see https://platform.openai.com/docs/models @@ -242,7 +242,7 @@ OpenAIAudioToTextService Factory(IServiceProvider serviceProvider, object? _) => } /// - /// Adds the OpenAI audio-to-text service to the list. + /// Adds the to the . /// /// The instance to augment. /// OpenAI model id @@ -270,7 +270,7 @@ OpenAIAudioToTextService Factory(IServiceProvider serviceProvider, object? _) => #region Files /// - /// Add the OpenAI file service to the list + /// Adds the to the . /// /// The instance to augment. /// OpenAI API key, see https://platform.openai.com/account/api-keys diff --git a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIAudioToTextService.cs b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIAudioToTextService.cs index 9084ab1782c3..eb409cb24851 100644 --- a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIAudioToTextService.cs +++ b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIAudioToTextService.cs @@ -33,7 +33,7 @@ public sealed class OpenAIAudioToTextService : IAudioToTextService public IReadOnlyDictionary Attributes => this._client.Attributes; /// - /// Creates an instance of the with API key auth. + /// Initializes a new instance of the class. /// /// Model name /// OpenAI API Key @@ -54,7 +54,7 @@ public OpenAIAudioToTextService( } /// - /// Creates an instance of the with API key auth. + /// Initializes a new instance of the class. /// /// Model name /// Custom for HTTP requests. diff --git a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIFileService.cs b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIFileService.cs index 8b50df3f3639..4185f1237b15 100644 --- a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIFileService.cs +++ b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAIFileService.cs @@ -23,7 +23,7 @@ public sealed class OpenAIFileService private readonly ClientCore _client; /// - /// Create an instance of the OpenAI chat completion connector + /// Initializes a new instance of the class. /// /// Non-default endpoint for the OpenAI API. /// API Key @@ -43,7 +43,7 @@ public OpenAIFileService( } /// - /// Create an instance of the OpenAI chat completion connector + /// Initializes a new instance of the class. /// /// OpenAI API Key /// OpenAI Organization Id (usually optional) diff --git a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextEmbbedingGenerationService.cs b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextEmbbedingGenerationService.cs index 39837bde1bc4..dbb5ec08f135 100644 --- a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextEmbbedingGenerationService.cs +++ b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextEmbbedingGenerationService.cs @@ -26,7 +26,7 @@ public sealed class OpenAITextEmbeddingGenerationService : ITextEmbeddingGenerat private readonly int? _dimensions; /// - /// Create an instance of + /// Initializes a new instance of the class. /// /// Model name /// OpenAI API Key @@ -57,7 +57,7 @@ public OpenAITextEmbeddingGenerationService( } /// - /// Create an instance of the OpenAI text embedding connector + /// Initializes a new instance of the class. /// /// Model name /// Custom for HTTP requests. diff --git a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextToAudioService.cs b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextToAudioService.cs index 2032d8fd2c12..49ca77d74c6d 100644 --- a/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextToAudioService.cs +++ b/dotnet/src/Connectors/Connectors.OpenAIV2/Services/OpenAITextToAudioService.cs @@ -33,7 +33,7 @@ public sealed class OpenAITextToAudioService : ITextToAudioService public IReadOnlyDictionary Attributes => this._client.Attributes; /// - /// Creates an instance of the with API key auth. + /// Initializes a new instance of the class. /// /// Model name /// OpenAI API Key @@ -54,7 +54,7 @@ public OpenAITextToAudioService( } /// - /// Creates an instance of the with API key auth. + /// Initializes a new instance of the class. /// /// Model name /// Custom for HTTP requests. From c9cb75ddbcd991eff59f3fd9994bf9237473aced Mon Sep 17 00:00:00 2001 From: SergeyMenshykh Date: Fri, 5 Jul 2024 14:06:32 +0100 Subject: [PATCH 2/3] fix: clean-up --- .../Extensions/AzureOpenAIKernelBuilderExtensions.cs | 6 +++--- .../Extensions/AzureOpenAIServiceCollectionExtensions.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs index 52ed9b9882e8..9bb6b2f18f5d 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIKernelBuilderExtensions.cs @@ -252,7 +252,7 @@ public static IKernelBuilder AddAzureOpenAITextEmbeddingGeneration( #region Images /// - /// Add the Azure OpenAI text-to-image service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -290,7 +290,7 @@ public static IKernelBuilder AddAzureOpenAITextToImage( } /// - /// Add the Azure OpenAI text-to-image service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -330,7 +330,7 @@ public static IKernelBuilder AddAzureOpenAITextToImage( } /// - /// Add the Azure OpenAI text-to-image service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource diff --git a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs index 9da3ae84913d..bfd3e4f65fbe 100644 --- a/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs +++ b/dotnet/src/Connectors/Connectors.AzureOpenAI/Extensions/AzureOpenAIServiceCollectionExtensions.cs @@ -238,7 +238,7 @@ public static IServiceCollection AddAzureOpenAITextEmbeddingGeneration( #region Images /// - /// Add the Azure OpenAI text-to-image service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -274,7 +274,7 @@ public static IServiceCollection AddAzureOpenAITextToImage( } /// - /// Add the Azure OpenAI text-to-image service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource @@ -309,7 +309,7 @@ public static IServiceCollection AddAzureOpenAITextToImage( } /// - /// Add the Azure OpenAI text-to-image service to the list. + /// Adds the to the . /// /// The instance to augment. /// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource From 06a6f1984cf5ec95f8f574dec1c8ab7010834730 Mon Sep 17 00:00:00 2001 From: SergeyMenshykh Date: Fri, 5 Jul 2024 14:17:38 +0100 Subject: [PATCH 3/3] fix: fix of typos --- docs/decisions/0046-kernel-content-graduation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/decisions/0046-kernel-content-graduation.md b/docs/decisions/0046-kernel-content-graduation.md index 43518ddfa2d3..368c59bd7621 100644 --- a/docs/decisions/0046-kernel-content-graduation.md +++ b/docs/decisions/0046-kernel-content-graduation.md @@ -85,7 +85,7 @@ Pros: - With no deferred content we have simpler API and a single responsibility for contents. - Can be written and read in both `Data` or `DataUri` formats. - Can have a `Uri` reference property, which is common for specialized contexts. -- Fully serializeable. +- Fully serializable. - Data Uri parameters support (serialization included). - Data Uri and Base64 validation checks - Data Uri and Data can be dynamically generated @@ -197,7 +197,7 @@ Pros: - Can be used as a `BinaryContent` type - Can be written and read in both `Data` or `DataUri` formats. - Can have a `Uri` dedicated for referenced location. -- Fully serializeable. +- Fully serializable. - Data Uri parameters support (serialization included). - Data Uri and Base64 validation checks - Can be retrieved @@ -254,7 +254,7 @@ Pros: - Can be used as a `BinaryContent` type - Can be written and read in both `Data` or `DataUri` formats. - Can have a `Uri` dedicated for referenced location. -- Fully serializeable. +- Fully serializable. - Data Uri parameters support (serialization included). - Data Uri and Base64 validation checks - Can be retrieved