Package com.bytedesk.ai.springai.spring
Class SpringAIConfig
java.lang.Object
com.bytedesk.ai.springai.spring.SpringAIConfig
@Configuration
@ConditionalOnProperty(name="spring.ai.ollama.chat.enabled",
havingValue="true",
matchIfMissing=true)
public class SpringAIConfig
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<org.springframework.ai.ollama.OllamaChatModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.ai.chat.client.ChatClient
(package private) org.springframework.ai.chat.memory.InMemoryChatMemory
-
Field Details
-
ollamaChatModel
-
-
Constructor Details
-
SpringAIConfig
public SpringAIConfig()
-
-
Method Details
-
defaultChatClient
@Primary @Bean("defaultChatClient") @ConditionalOnProperty(name="spring.ai.ollama.chat.enabled", havingValue="true", matchIfMissing=false) org.springframework.ai.chat.client.ChatClient defaultChatClient() -
defaultChatMemory
@Bean("defaultChatMemory") org.springframework.ai.chat.memory.InMemoryChatMemory defaultChatMemory()
-