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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncohereChatApi
(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockCohereChatProperties properties, BedrockAwsConnectionProperties awsProperties) cohereChatClient
(CohereChatBedrockApi cohereChatApi, BedrockCohereChatProperties properties)
-
Constructor Details
-
BedrockCohereChatAutoConfiguration
public BedrockCohereChatAutoConfiguration()
-
-
Method Details
-
cohereChatApi
@Bean @ConditionalOnMissingBean public CohereChatBedrockApi cohereChatApi(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, BedrockCohereChatProperties properties, BedrockAwsConnectionProperties awsProperties) -
cohereChatClient
@Bean public BedrockCohereChatClient cohereChatClient(CohereChatBedrockApi cohereChatApi, BedrockCohereChatProperties properties)
-