Uses of Class
com.azure.ai.openai.OpenAIClientBuilder
Packages that use OpenAIClientBuilder
-
Uses of OpenAIClientBuilder in com.azure.ai.openai
Methods in com.azure.ai.openai that return OpenAIClientBuilderModifier and TypeMethodDescriptionOpenAIClientBuilder.addPolicy(com.azure.core.http.policy.HttpPipelinePolicy customPolicy) Adds apipeline policyto apply on each request sent.OpenAIClientBuilder.clientOptions(com.azure.core.util.ClientOptions clientOptions) Allows for setting common properties such as application ID, headers, proxy configuration, etc.OpenAIClientBuilder.configuration(com.azure.core.util.Configuration configuration) Sets the client-specific configuration used to retrieve client or global configuration properties when building a client.OpenAIClientBuilder.credential(com.azure.core.credential.KeyCredential keyCredential) Sets theKeyCredentialused for authentication.OpenAIClientBuilder.credential(com.azure.core.credential.TokenCredential tokenCredential) Sets theTokenCredentialused to authorize requests sent to the service.Sets the service endpoint that will be connected to by clients.OpenAIClientBuilder.httpClient(com.azure.core.http.HttpClient httpClient) Sets theHttpClientto use for sending and receiving requests to and from the service.OpenAIClientBuilder.httpLogOptions(com.azure.core.http.policy.HttpLogOptions httpLogOptions) Sets thelogging configurationto use when sending and receiving requests to and from the service.OpenAIClientBuilder.pipeline(com.azure.core.http.HttpPipeline pipeline) Sets theHttpPipelineto use for the service client.OpenAIClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions retryOptions) Sets theRetryOptionsfor all the requests made through the client.OpenAIClientBuilder.retryPolicy(com.azure.core.http.policy.RetryPolicy retryPolicy) Sets The retry policy that will attempt to retry failed requests, if applicable.OpenAIClientBuilder.serviceVersion(OpenAIServiceVersion serviceVersion) Sets Service version.