Class OllamaApiAutoConfiguration
java.lang.Object
org.springframework.ai.model.ollama.autoconfigure.OllamaApiAutoConfiguration
@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class})
@ConditionalOnClass(OllamaApi.class)
@EnableConfigurationProperties(OllamaConnectionProperties.class)
public class OllamaApiAutoConfiguration
extends Object
Auto-configuration
for Ollama API.- Since:
- 0.8.0
- Author:
- Christian Tzolov, EddĂș MelĂ©ndez, Thomas Vitale, Ilayaperumal Gopinathan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionollamaApi
(OllamaConnectionDetails connectionDetails, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-
Constructor Details
-
OllamaApiAutoConfiguration
public OllamaApiAutoConfiguration()
-
-
Method Details
-
ollamaApi
@Bean @ConditionalOnMissingBean public OllamaApi ollamaApi(OllamaConnectionDetails connectionDetails, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-