Class DashScopeRerankAutoConfiguration
java.lang.Object
com.alibaba.cloud.ai.autoconfigure.dashscope.DashScopeRerankAutoConfiguration
@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class,org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.class})
@ConditionalOnClass(com.alibaba.cloud.ai.dashscope.api.DashScopeApi.class)
@ConditionalOnDashScopeEnabled
@ConditionalOnProperty(name="spring.ai.model.rerank",
havingValue="dashscope",
matchIfMissing=true)
@EnableConfigurationProperties({DashScopeConnectionProperties.class,DashScopeRerankProperties.class})
@ImportAutoConfiguration(classes={org.springframework.ai.retry.autoconfigure.SpringAiRetryAutoConfiguration.class,org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class})
public class DashScopeRerankAutoConfiguration
extends Object
- Author:
- yuluo, yuluo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondashscopeRerankModel(DashScopeConnectionProperties commonProperties, DashScopeRerankProperties rerankProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-
Constructor Details
-
DashScopeRerankAutoConfiguration
public DashScopeRerankAutoConfiguration()
-
-
Method Details
-
dashscopeRerankModel
@Bean @ConditionalOnMissingBean public DashScopeRerankModel dashscopeRerankModel(DashScopeConnectionProperties commonProperties, DashScopeRerankProperties rerankProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.web.client.RestClient.Builder> restClientBuilderProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.reactive.function.client.WebClient.Builder> webClientBuilderProvider, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
-