Class BedrockLlama2ChatAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.llama2.BedrockLlama2ChatAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(Llama2ChatBedrockApi.class)
@EnableConfigurationProperties({BedrockLlama2ChatProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.llama2.chat",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockLlama2ChatAutoConfiguration
extends Object
Auto-configuration
for Bedrock Llama2 Chat Client.
Leverages the Spring Cloud AWS to resolve the AwsCredentialsProvider
.- Since:
- 0.8.0
- Author:
- Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionllama2Api
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockLlama2ChatProperties properties, BedrockAwsConnectionProperties awsProperties) llama2ChatClient
(Llama2ChatBedrockApi llama2Api, BedrockLlama2ChatProperties properties)
-
Constructor Details
-
BedrockLlama2ChatAutoConfiguration
public BedrockLlama2ChatAutoConfiguration()
-
-
Method Details
-
llama2Api
@Bean @ConditionalOnMissingBean public Llama2ChatBedrockApi llama2Api(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockLlama2ChatProperties properties, BedrockAwsConnectionProperties awsProperties) -
llama2ChatClient
@Bean public BedrockLlama2ChatClient llama2ChatClient(Llama2ChatBedrockApi llama2Api, BedrockLlama2ChatProperties properties)
-