Class BedrockTitanChatAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.titan.BedrockTitanChatAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(TitanChatBedrockApi.class)
@EnableConfigurationProperties({BedrockTitanChatProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.titan.chat",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockTitanChatAutoConfiguration
extends Object
Auto-configuration
for Bedrock Titan Chat Client.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Wei Jiang
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontitanChatBedrockApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockTitanChatProperties properties, BedrockAwsConnectionProperties awsProperties) titanChatModel
(TitanChatBedrockApi titanChatApi, BedrockTitanChatProperties properties)
-
Constructor Details
-
BedrockTitanChatAutoConfiguration
public BedrockTitanChatAutoConfiguration()
-
-
Method Details
-
titanChatBedrockApi
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public TitanChatBedrockApi titanChatBedrockApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockTitanChatProperties properties, BedrockAwsConnectionProperties awsProperties) -
titanChatModel
@Bean @ConditionalOnBean(TitanChatBedrockApi.class) public BedrockTitanChatModel titanChatModel(TitanChatBedrockApi titanChatApi, BedrockTitanChatProperties properties)
-