Uses of Class
org.springframework.ai.openai.OpenAiChatModel.Builder
Packages that use OpenAiChatModel.Builder
-
Uses of OpenAiChatModel.Builder in org.springframework.ai.openai
Methods in org.springframework.ai.openai that return OpenAiChatModel.BuilderModifier and TypeMethodDescriptionstatic OpenAiChatModel.BuilderOpenAiChatModel.builder()Creates a new builder forOpenAiChatModel.OpenAiChatModel.Builder.httpClientBuilderCustomizer(OpenAiHttpClientBuilderCustomizer customizer) Registers anOpenAiHttpClientBuilderCustomizerthat mutates the underlying OkHttp client builder before the OpenAI clients are constructed.OpenAiChatModel.Builder.httpClientBuilderCustomizers(List<OpenAiHttpClientBuilderCustomizer> customizers) Sets the full list ofcustomizersto apply, replacing any customizers registered earlier on this builder.OpenAiChatModel.Builder.meterRegistry(@Nullable io.micrometer.core.instrument.MeterRegistry meterRegistry) OpenAiChatModel.Builder.observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Sets the observation registry for metrics and tracing.OpenAiChatModel.Builder.openAiClient(com.openai.client.OpenAIClient openAiClient) Sets the synchronous OpenAI client.OpenAiChatModel.Builder.openAiClientAsync(com.openai.client.OpenAIClientAsync openAiClientAsync) Sets the asynchronous OpenAI client.OpenAiChatModel.Builder.options(OpenAiChatOptions options) Sets the chat options.OpenAiChatModel.Builder.toolCallingManager(ToolCallingManager toolCallingManager) Deprecated, for removal: This API element is subject to removal in a future version.
OpenAiChatModelis superseded byToolCallingAdvisorused viaChatClient.