OpenAIClientBuilder Klasse
- java.
lang. Object - com.
azure. ai. openai. OpenAIClientBuilder
- com.
Implementiert
public final class OpenAIClientBuilder
implements HttpTrait<OpenAIClientBuilder>, ConfigurationTrait<OpenAIClientBuilder>, TokenCredentialTrait<OpenAIClientBuilder>, com.azure.core.client.traits.KeyCredentialTrait<OpenAIClientBuilder>, EndpointTrait<OpenAIClientBuilder>
Ein Generator zum Erstellen einer neuen instance des OpenAIClient-Typs.
Zusammenfassung zum Konstruktor
Konstruktor | Beschreibung |
---|---|
OpenAIClientBuilder() |
Erstellen Sie eine instance des Open |
Methodenzusammenfassung
Geerbte Methoden von java.lang.Object
Details zum Konstruktor
OpenAIClientBuilder
public OpenAIClientBuilder()
Erstellen Sie eine instance von OpenAIClientBuilder.
Details zur Methode
addPolicy
public OpenAIClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
.
Parameters:
buildAsyncClient
public OpenAIAsyncClient buildAsyncClient()
Erstellt eine instance der OpenAIAsyncClient-Klasse.
Returns:
buildClient
public OpenAIClient buildClient()
Erstellt eine instance der OpenAIClient-Klasse.
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)
Legt die Wiederholungsrichtlinie fest, die versucht, fehlgeschlagene Anforderungen zu wiederholen, falls zutreffend.
Parameters:
Returns:
serviceVersion
public OpenAIClientBuilder serviceVersion(OpenAIServiceVersion serviceVersion)
Legt die Dienstversion fest.
Parameters:
Returns: