Skip to content

Commit 2ee503f

Browse files
committed
Addressing PR review
1 parent 24283d6 commit 2ee503f

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/anthropic/BedrockAnthropicChatAutoConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
*
3939
* @author Christian Tzolov
4040
* @author Wei Jiang
41-
* @author Soby Chacko
4241
* @since 0.8.0
4342
*/
4443
@AutoConfiguration
4544
@ConditionalOnClass(AnthropicChatBedrockApi.class)
4645
@EnableConfigurationProperties({ BedrockAnthropicChatProperties.class, BedrockAwsConnectionProperties.class })
47-
@ConditionalOnProperty(prefix = BedrockAnthropicChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
48-
matchIfMissing = true)
46+
@ConditionalOnProperty(prefix = BedrockAnthropicChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true")
4947
@Import(BedrockAwsConnectionConfiguration.class)
5048
public class BedrockAnthropicChatAutoConfiguration {
5149

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/anthropic3/BedrockAnthropic3ChatAutoConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
*
3939
* @author Christian Tzolov
4040
* @author Wei Jiang
41-
* @author Soby Chacko
4241
* @since 0.8.0
4342
*/
4443
@AutoConfiguration
4544
@ConditionalOnClass(Anthropic3ChatBedrockApi.class)
4645
@EnableConfigurationProperties({ BedrockAnthropic3ChatProperties.class, BedrockAwsConnectionProperties.class })
47-
@ConditionalOnProperty(prefix = BedrockAnthropic3ChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
48-
matchIfMissing = true)
46+
@ConditionalOnProperty(prefix = BedrockAnthropic3ChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true")
4947
@Import(BedrockAwsConnectionConfiguration.class)
5048
public class BedrockAnthropic3ChatAutoConfiguration {
5149

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/cohere/BedrockCohereChatAutoConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@
3636
*
3737
* @author Christian Tzolov
3838
* @author Wei Jiang
39-
* @author Soby Chacko
4039
* @since 0.8.0
4140
*/
4241
@AutoConfiguration
4342
@ConditionalOnClass(CohereChatBedrockApi.class)
4443
@EnableConfigurationProperties({ BedrockCohereChatProperties.class, BedrockAwsConnectionProperties.class })
45-
@ConditionalOnProperty(prefix = BedrockCohereChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
46-
matchIfMissing = true)
44+
@ConditionalOnProperty(prefix = BedrockCohereChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true")
4745
@Import(BedrockAwsConnectionConfiguration.class)
4846
public class BedrockCohereChatAutoConfiguration {
4947

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/cohere/BedrockCohereEmbeddingAutoConfiguration.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@
3737
*
3838
* @author Christian Tzolov
3939
* @author Wei Jiang
40-
* @author Soby Chacko
4140
* @since 0.8.0
4241
*/
4342
@AutoConfiguration
4443
@ConditionalOnClass(CohereEmbeddingBedrockApi.class)
4544
@EnableConfigurationProperties({ BedrockCohereEmbeddingProperties.class, BedrockAwsConnectionProperties.class })
46-
@ConditionalOnProperty(prefix = BedrockCohereEmbeddingProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
47-
matchIfMissing = true)
45+
@ConditionalOnProperty(prefix = BedrockCohereEmbeddingProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true")
4846
@Import(BedrockAwsConnectionConfiguration.class)
4947
public class BedrockCohereEmbeddingAutoConfiguration {
5048

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/jurrasic2/BedrockAi21Jurassic2ChatAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@
3737
*
3838
* @author Ahmed Yousri
3939
* @author Wei Jiang
40-
* @author Soby Chacko
4140
* @since 1.0.0
4241
*/
4342
@AutoConfiguration
4443
@ConditionalOnClass(Ai21Jurassic2ChatBedrockApi.class)
4544
@EnableConfigurationProperties({ BedrockAi21Jurassic2ChatProperties.class, BedrockAwsConnectionProperties.class })
4645
@ConditionalOnProperty(prefix = BedrockAi21Jurassic2ChatProperties.CONFIG_PREFIX, name = "enabled",
47-
havingValue = "true", matchIfMissing = true)
46+
havingValue = "true")
4847
@Import(BedrockAwsConnectionConfiguration.class)
4948
public class BedrockAi21Jurassic2ChatAutoConfiguration {
5049

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/bedrock/llama/BedrockLlamaChatAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
@AutoConfiguration
4545
@ConditionalOnClass(LlamaChatBedrockApi.class)
4646
@EnableConfigurationProperties({ BedrockLlamaChatProperties.class, BedrockAwsConnectionProperties.class })
47-
@ConditionalOnProperty(prefix = BedrockLlamaChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true",
48-
matchIfMissing = true)
47+
@ConditionalOnProperty(prefix = BedrockLlamaChatProperties.CONFIG_PREFIX, name = "enabled", havingValue = "true")
4948
@Import(BedrockAwsConnectionConfiguration.class)
5049
public class BedrockLlamaChatAutoConfiguration {
5150

0 commit comments

Comments
 (0)