Class BedrockCohereChatAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.bedrock.cohere.BedrockCohereChatAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(CohereChatBedrockApi.class)
@EnableConfigurationProperties({BedrockCohereChatProperties.class,BedrockAwsConnectionProperties.class})
@ConditionalOnProperty(prefix="spring.ai.bedrock.cohere.chat",
name="enabled",
havingValue="true")
@Import(BedrockAwsConnectionConfiguration.class)
public class BedrockCohereChatAutoConfiguration
extends Object
Auto-configuration
for Bedrock Cohere Chat Client.- Since:
- 0.8.0
- Author:
- Christian Tzolov, Wei Jiang
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncohereChatApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockCohereChatProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) cohereChatModel
(CohereChatBedrockApi cohereChatApi, BedrockCohereChatProperties properties)
-
Constructor Details
-
BedrockCohereChatAutoConfiguration
public BedrockCohereChatAutoConfiguration()
-
-
Method Details
-
cohereChatApi
@Bean @ConditionalOnMissingBean @ConditionalOnBean({software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.class,software.amazon.awssdk.regions.providers.AwsRegionProvider.class}) public CohereChatBedrockApi cohereChatApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProvider regionProvider, BedrockCohereChatProperties properties, BedrockAwsConnectionProperties awsProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
cohereChatModel
@Bean @ConditionalOnMissingBean @ConditionalOnBean(CohereChatBedrockApi.class) public BedrockCohereChatModel cohereChatModel(CohereChatBedrockApi cohereChatApi, BedrockCohereChatProperties properties)
-