Class BedrockLlamaChatAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.llama.BedrockLlamaChatAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(LlamaChatBedrockApi.class)
@EnableConfigurationProperties({BedrockLlamaChatProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.llama.chat",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockLlamaChatAutoConfiguration
extends Object
Auto-configuration
for Bedrock Llama Chat Client.
Leverages the Spring Cloud AWS to resolve the AwsCredentialsProvider
.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Wei Jiang
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionllamaApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockLlamaChatProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) llamaChatModel
(LlamaChatBedrockApi llamaApi, BedrockLlamaChatProperties properties)
-
Constructor Details
-
BedrockLlamaChatAutoConfiguration
public BedrockLlamaChatAutoConfiguration()
-
-
Method Details
-
llamaApi
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public LlamaChatBedrockApi llamaApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockLlamaChatProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
llamaChatModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(LlamaChatBedrockApi.class) public BedrockLlamaChatModel llamaChatModel(LlamaChatBedrockApi llamaApi, BedrockLlamaChatProperties properties)
-