OpenAIClientProvider.ForAzureOpenAI Method
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.
Overloads
ForAzureOpenAI(TokenCredential, Uri, HttpClient) |
Produce a OpenAIClientProvider based on AzureOpenAIClient. |
ForAzureOpenAI(ApiKeyCredential, Uri, HttpClient) |
Produce a OpenAIClientProvider based on AzureOpenAIClient. |
ForAzureOpenAI(TokenCredential, Uri, HttpClient)
Produce a OpenAIClientProvider based on AzureOpenAIClient.
public static Microsoft.SemanticKernel.Agents.OpenAI.OpenAIClientProvider ForAzureOpenAI (Azure.Core.TokenCredential credential, Uri endpoint, System.Net.Http.HttpClient? httpClient = default);
static member ForAzureOpenAI : Azure.Core.TokenCredential * Uri * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.Agents.OpenAI.OpenAIClientProvider
Public Shared Function ForAzureOpenAI (credential As TokenCredential, endpoint As Uri, Optional httpClient As HttpClient = Nothing) As OpenAIClientProvider
Parameters
- credential
- TokenCredential
The credentials
- endpoint
- Uri
The service endpoint
- httpClient
- HttpClient
Custom HttpClient for HTTP requests.
Returns
Applies to
ForAzureOpenAI(ApiKeyCredential, Uri, HttpClient)
Produce a OpenAIClientProvider based on AzureOpenAIClient.
public static Microsoft.SemanticKernel.Agents.OpenAI.OpenAIClientProvider ForAzureOpenAI (System.ClientModel.ApiKeyCredential apiKey, Uri endpoint, System.Net.Http.HttpClient? httpClient = default);
static member ForAzureOpenAI : System.ClientModel.ApiKeyCredential * Uri * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.Agents.OpenAI.OpenAIClientProvider
Public Shared Function ForAzureOpenAI (apiKey As ApiKeyCredential, endpoint As Uri, Optional httpClient As HttpClient = Nothing) As OpenAIClientProvider
Parameters
- apiKey
- ApiKeyCredential
The API key
- endpoint
- Uri
The service endpoint
- httpClient
- HttpClient
Custom HttpClient for HTTP requests.