OpenAIClientExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for working with OpenAIClients.
public ref class OpenAIClientExtensions abstract sealed
public static class OpenAIClientExtensions
type OpenAIClientExtensions = class
Public Module OpenAIClientExtensions
- Inheritance
-
OpenAIClientExtensions
Methods
| Name | Description |
|---|---|
| AsIChatClient(ChatClient) |
Gets an IChatClient for use with this ChatClient. |
| AsIChatClient(ResponsesClient, String) |
Gets an IChatClient for use with this ResponsesClient. |
| AsIEmbeddingGenerator(EmbeddingClient, Nullable<Int32>) |
Gets an IEmbeddingGenerator<TInput,TEmbedding> for use with this EmbeddingClient. |
| AsIHostedFileClient(ContainerClient, String) |
Gets an IHostedFileClient for use with this ContainerClient. |
| AsIHostedFileClient(OpenAIClient) |
Gets an IHostedFileClient for use with this OpenAIClient. |
| AsIHostedFileClient(OpenAIFileClient) |
Gets an IHostedFileClient for use with this OpenAIFileClient. |
| AsIImageGenerator(ImageClient) |
Gets an IImageGenerator for use with this ImageClient. |
| AsISpeechToTextClient(AudioClient) |
Gets an ISpeechToTextClient for use with this AudioClient. |
| AsITextToSpeechClient(AudioClient) |
Gets an ITextToSpeechClient for use with this AudioClient. |