Class Ollama4jChatConfig

java.lang.Object
com.bytedesk.ai.springai.providers.ollama.Ollama4jChatConfig

@Configuration @ConditionalOnProperty(prefix="spring.ai.ollama.chat", name="enabled", havingValue="true", matchIfMissing=false) public class Ollama4jChatConfig extends Object
https://github.com/ollama4j/ollama4j https://ollama4j.github.io/ollama4j/intro
  • Field Details

    • ollamaBaseUrl

      @Value("${spring.ai.ollama.base-url}") private String ollamaBaseUrl
    • ollamaRequestTimeoutSeconds

      @Value("${spring.ai.ollama.request-timeout-seconds:120}") private Integer ollamaRequestTimeoutSeconds
  • Constructor Details

    • Ollama4jChatConfig

      public Ollama4jChatConfig()
  • Method Details

    • getOllamaAPI

      @Bean(name="ollama4jApi") io.github.ollama4j.OllamaAPI getOllamaAPI()