OpenAIClientBuilder Classe
- java.
lang. Object - com.
azure. ai. openai. OpenAIClientBuilder
- com.
Implémente
public final class OpenAIClientBuilder
implements HttpTrait<OpenAIClientBuilder>, ConfigurationTrait<OpenAIClientBuilder>, TokenCredentialTrait<OpenAIClientBuilder>, com.azure.core.client.traits.KeyCredentialTrait<OpenAIClientBuilder>, EndpointTrait<OpenAIClientBuilder>
Générateur pour la création d’un instance du type OpenAIClient.
Récapitulatif du constructeur
Constructeur | Description |
---|---|
OpenAIClientBuilder() |
Créez un instance d’Open |
Résumé de la méthode
Méthodes héritées de java.lang.Object
Détails du constructeur
OpenAIClientBuilder
public OpenAIClientBuilder()
Créez un instance d’OpenAIClientBuilder.
Détails de la méthode
addPolicy
public OpenAIClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
.
Parameters:
buildAsyncClient
public OpenAIAsyncClient buildAsyncClient()
Génère un instance de la classe OpenAIAsyncClient.
Returns:
buildClient
public OpenAIClient buildClient()
Génère une instance de classe OpenAIClient.
Returns:
clientOptions
public OpenAIClientBuilder clientOptions(ClientOptions clientOptions)
.
Parameters:
configuration
public OpenAIClientBuilder configuration(Configuration configuration)
.
Parameters:
credential
public OpenAIClientBuilder credential(KeyCredential keyCredential)
.
Parameters:
credential
public OpenAIClientBuilder credential(TokenCredential tokenCredential)
.
Parameters:
endpoint
public OpenAIClientBuilder endpoint(String endpoint)
.
Parameters:
httpClient
public OpenAIClientBuilder httpClient(HttpClient httpClient)
.
Parameters:
httpLogOptions
public OpenAIClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
.
Parameters:
pipeline
public OpenAIClientBuilder pipeline(HttpPipeline pipeline)
.
Parameters:
retryOptions
public OpenAIClientBuilder retryOptions(RetryOptions retryOptions)
.
Parameters:
retryPolicy
public OpenAIClientBuilder retryPolicy(RetryPolicy retryPolicy)
Définit la stratégie de nouvelle tentative qui tentera de réessayer les demandes ayant échoué, le cas échéant.
Parameters:
Returns:
serviceVersion
public OpenAIClientBuilder serviceVersion(OpenAIServiceVersion serviceVersion)
Définit la version du service.
Parameters:
Returns: