Class WatsonxAiAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.watsonxai.WatsonxAiAutoConfiguration
@AutoConfiguration(after=org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class)
@ConditionalOnClass(WatsonxAiApi.class)
@EnableConfigurationProperties({WatsonxAiConnectionProperties.class,WatsonxAiChatProperties.class,WatsonxAiEmbeddingProperties.class})
@ConditionalOnProperty(prefix="spring.ai.watsonx.ai.chat",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class WatsonxAiAutoConfiguration
extends Object
WatsonX.ai autoconfiguration class.
- Since:
- 1.0.0
- Author:
- Pablo Sanchidrian Herrera, John Jario Moreno Rojas, Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwatsonxAiEmbeddingModel
(WatsonxAiApi watsonxApi, WatsonxAiEmbeddingProperties properties) watsonxApi
(WatsonxAiConnectionProperties properties, org.springframework.web.client.RestClient.Builder restClientBuilder) watsonxChatModel
(WatsonxAiApi watsonxApi, WatsonxAiChatProperties chatProperties)
-
Constructor Details
-
WatsonxAiAutoConfiguration
public WatsonxAiAutoConfiguration()
-
-
Method Details
-
watsonxApi
@Bean @ConditionalOnMissingBean public WatsonxAiApi watsonxApi(WatsonxAiConnectionProperties properties, org.springframework.web.client.RestClient.Builder restClientBuilder) -
watsonxChatModel
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.watsonx.ai.chat", name="enabled", havingValue="true", matchIfMissing=true) public WatsonxAiChatModel watsonxChatModel(WatsonxAiApi watsonxApi, WatsonxAiChatProperties chatProperties) -
watsonxAiEmbeddingModel
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.watsonx.ai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public WatsonxAiEmbeddingModel watsonxAiEmbeddingModel(WatsonxAiApi watsonxApi, WatsonxAiEmbeddingProperties properties)
-