Share via


OpenAIServiceCollectionExtensions Class

Definition

Provides extension methods for IServiceCollection and related classes to configure OpenAI and Azure OpenAI connectors.

public static class OpenAIServiceCollectionExtensions
type OpenAIServiceCollectionExtensions = class
Public Module OpenAIServiceCollectionExtensions
Inheritance
OpenAIServiceCollectionExtensions

Methods

AddAzureOpenAIAudioToText(IKernelBuilder, String, OpenAIClient, String, String)

Adds the Azure OpenAI audio-to-text service to the list.

AddAzureOpenAIAudioToText(IKernelBuilder, String, String, String, String, String, HttpClient)

Adds the Azure OpenAI audio-to-text service to the list.

AddAzureOpenAIAudioToText(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient)

Adds the Azure OpenAI audio-to-text service to the list.

AddAzureOpenAIAudioToText(IServiceCollection, String, OpenAIClient, String, String)

Adds the Azure OpenAI audio-to-text service to the list.

AddAzureOpenAIAudioToText(IServiceCollection, String, String, String, String, String)

Adds the Azure OpenAI audio-to-text service to the list.

AddAzureOpenAIAudioToText(IServiceCollection, String, String, TokenCredential, String, String)

Adds the Azure OpenAI audio-to-text service to the list.

AddAzureOpenAIChatCompletion(IKernelBuilder, AzureOpenAIChatCompletionWithDataConfig, String)
Obsolete.

Adds the Azure OpenAI chat completion with data service to the list.

AddAzureOpenAIChatCompletion(IKernelBuilder, String, OpenAIClient, String, String)

Adds the Azure OpenAI chat completion service to the list.

AddAzureOpenAIChatCompletion(IKernelBuilder, String, String, String, String, String, HttpClient)

Adds the Azure OpenAI chat completion service to the list.

AddAzureOpenAIChatCompletion(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient)

Adds the Azure OpenAI chat completion service to the list.

AddAzureOpenAIChatCompletion(IServiceCollection, AzureOpenAIChatCompletionWithDataConfig, String)
Obsolete.

Adds the Azure OpenAI chat completion with data service to the list.

AddAzureOpenAIChatCompletion(IServiceCollection, String, OpenAIClient, String, String)

Adds the Azure OpenAI chat completion service to the list.

AddAzureOpenAIChatCompletion(IServiceCollection, String, String, String, String, String)

Adds the Azure OpenAI chat completion service to the list.

AddAzureOpenAIChatCompletion(IServiceCollection, String, String, TokenCredential, String, String)

Adds the Azure OpenAI chat completion service to the list.

AddAzureOpenAIFiles(IKernelBuilder, String, String, String, String, String, HttpClient)

Add the OpenAI file service to the list

AddAzureOpenAIFiles(IServiceCollection, String, String, String, String, String)

Add the OpenAI file service to the list

AddAzureOpenAITextEmbeddingGeneration(IKernelBuilder, String, OpenAIClient, String, String, Nullable<Int32>)

Adds an Azure OpenAI text embeddings service to the list.

AddAzureOpenAITextEmbeddingGeneration(IKernelBuilder, String, String, String, String, String, HttpClient, Nullable<Int32>)

Adds an Azure OpenAI text embeddings service to the list.

AddAzureOpenAITextEmbeddingGeneration(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient, Nullable<Int32>)

Adds an Azure OpenAI text embeddings service to the list.

AddAzureOpenAITextEmbeddingGeneration(IServiceCollection, String, OpenAIClient, String, String, Nullable<Int32>)

Adds an Azure OpenAI text embeddings service to the list.

AddAzureOpenAITextEmbeddingGeneration(IServiceCollection, String, String, String, String, String, Nullable<Int32>)

Adds an Azure OpenAI text embeddings service to the list.

AddAzureOpenAITextEmbeddingGeneration(IServiceCollection, String, String, TokenCredential, String, String, Nullable<Int32>)

Adds an Azure OpenAI text embeddings service to the list.

AddAzureOpenAITextGeneration(IKernelBuilder, String, OpenAIClient, String, String)

Adds an Azure OpenAI text generation service with the specified configuration.

AddAzureOpenAITextGeneration(IKernelBuilder, String, String, String, String, String, HttpClient)

Adds an Azure OpenAI text generation service with the specified configuration.

AddAzureOpenAITextGeneration(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient)

Adds an Azure OpenAI text generation service with the specified configuration.

AddAzureOpenAITextGeneration(IServiceCollection, String, OpenAIClient, String, String)

Adds an Azure OpenAI text generation service with the specified configuration.

AddAzureOpenAITextGeneration(IServiceCollection, String, String, String, String, String)

Adds an Azure OpenAI text generation service with the specified configuration.

AddAzureOpenAITextGeneration(IServiceCollection, String, String, TokenCredential, String, String)

Adds an Azure OpenAI text generation service with the specified configuration.

AddAzureOpenAITextToAudio(IKernelBuilder, String, String, String, String, String, HttpClient)

Adds the Azure OpenAI text-to-audio service to the list.

AddAzureOpenAITextToAudio(IServiceCollection, String, String, String, String, String, HttpClient)

Adds the Azure OpenAI text-to-audio service to the list.

AddAzureOpenAITextToImage(IKernelBuilder, String, OpenAIClient, String, String)

Add the OpenAI Dall-E text to image service to the list

AddAzureOpenAITextToImage(IKernelBuilder, String, String, String, String, String, String, HttpClient)

Add the Azure OpenAI Dall-E text to image service to the list

AddAzureOpenAITextToImage(IKernelBuilder, String, String, TokenCredential, String, String, String)

Add the Azure OpenAI Dall-E text to image service to the list

AddAzureOpenAITextToImage(IServiceCollection, String, OpenAIClient, String, String)

Add the OpenAI Dall-E text to image service to the list

AddAzureOpenAITextToImage(IServiceCollection, String, String, String, String, String, Int32)

Add the Azure OpenAI Dall-E text to image service to the list

AddAzureOpenAITextToImage(IServiceCollection, String, String, TokenCredential, String, String, String)

Add the Azure OpenAI Dall-E text to image service to the list

AddOpenAIAudioToText(IKernelBuilder, String, OpenAIClient, String)

Adds the OpenAI audio-to-text service to the list.

AddOpenAIAudioToText(IKernelBuilder, String, String, String, String, HttpClient)

Adds the OpenAI audio-to-text service to the list.

AddOpenAIAudioToText(IServiceCollection, String, OpenAIClient, String)

Adds the OpenAI audio-to-text service to the list.

AddOpenAIAudioToText(IServiceCollection, String, String, String, String)

Adds the OpenAI audio-to-text service to the list.

AddOpenAIChatCompletion(IKernelBuilder, String, OpenAIClient, String)

Adds the OpenAI chat completion service to the list.

AddOpenAIChatCompletion(IKernelBuilder, String, String, String, String, HttpClient)

Adds the OpenAI chat completion service to the list.

AddOpenAIChatCompletion(IKernelBuilder, String, Uri, String, String, String, HttpClient)

Adds the Custom Endpoint OpenAI chat completion service to the list.

AddOpenAIChatCompletion(IServiceCollection, String, OpenAIClient, String)

Adds the OpenAI chat completion service to the list.

AddOpenAIChatCompletion(IServiceCollection, String, String, String, String)

Adds the OpenAI chat completion service to the list.

AddOpenAIChatCompletion(IServiceCollection, String, Uri, String, String, String)

Adds the Custom OpenAI chat completion service to the list.

AddOpenAIFiles(IKernelBuilder, String, String, String, HttpClient)

Add the OpenAI file service to the list

AddOpenAIFiles(IServiceCollection, String, String, String)

Add the OpenAI file service to the list

AddOpenAITextEmbeddingGeneration(IKernelBuilder, String, OpenAIClient, String, Nullable<Int32>)

Adds the OpenAI text embeddings service to the list.

AddOpenAITextEmbeddingGeneration(IKernelBuilder, String, String, String, String, HttpClient, Nullable<Int32>)

Adds the OpenAI text embeddings service to the list.

AddOpenAITextEmbeddingGeneration(IServiceCollection, String, OpenAIClient, String, Nullable<Int32>)

Adds the OpenAI text embeddings service to the list.

AddOpenAITextEmbeddingGeneration(IServiceCollection, String, String, String, String, Nullable<Int32>)

Adds the OpenAI text embeddings service to the list.

AddOpenAITextGeneration(IKernelBuilder, String, OpenAIClient, String)

Adds an OpenAI text generation service with the specified configuration.

AddOpenAITextGeneration(IKernelBuilder, String, String, String, String, HttpClient)

Adds an OpenAI text generation service with the specified configuration.

AddOpenAITextGeneration(IServiceCollection, String, OpenAIClient, String)

Adds an OpenAI text generation service with the specified configuration.

AddOpenAITextGeneration(IServiceCollection, String, String, String, String)

Adds an OpenAI text generation service with the specified configuration.

AddOpenAITextToAudio(IKernelBuilder, String, String, String, String, HttpClient)

Adds the OpenAI text-to-audio service to the list.

AddOpenAITextToAudio(IServiceCollection, String, String, String, String)

Adds the OpenAI text-to-audio service to the list.

AddOpenAITextToImage(IKernelBuilder, String, String, String, String, HttpClient)

Add the OpenAI Dall-E text to image service to the list

AddOpenAITextToImage(IServiceCollection, String, String, String, String)

Add the OpenAI Dall-E text to image service to the list

Applies to