OpenAIClientBuilder Clase
- java.
lang. Object - com.
azure. ai. openai. OpenAIClientBuilder
- com.
Implementaciones
public final class OpenAIClientBuilder
implements HttpTrait<OpenAIClientBuilder>, ConfigurationTrait<OpenAIClientBuilder>, TokenCredentialTrait<OpenAIClientBuilder>, com.azure.core.client.traits.KeyCredentialTrait<OpenAIClientBuilder>, EndpointTrait<OpenAIClientBuilder>
Generador para crear una nueva instancia del tipo OpenAIClient.
Resumen del constructor
Constructor | Description |
---|---|
OpenAIClientBuilder() |
Cree una instancia de Open |
Resumen del método
Métodos heredados de java.lang.Object
Detalles del constructor
OpenAIClientBuilder
public OpenAIClientBuilder()
Cree una instancia de OpenAIClientBuilder.
Detalles del método
addPolicy
public OpenAIClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
.
Parameters:
buildAsyncClient
public OpenAIAsyncClient buildAsyncClient()
Compila una instancia de la clase OpenAIAsyncClient.
Returns:
buildClient
public OpenAIClient buildClient()
Compila una instancia de la clase 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)
Establece la directiva de reintento que intentará reintentar solicitudes con error, si procede.
Parameters:
Returns:
serviceVersion
public OpenAIClientBuilder serviceVersion(OpenAIServiceVersion serviceVersion)
Establece la versión del servicio.
Parameters:
Returns: