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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)