feat: add aliyun rerank model

This commit is contained in:
wizardchen
2025-09-09 17:40:14 +08:00
committed by lyingbug
parent 3f8a1d20c1
commit 4214e6782b
6 changed files with 257 additions and 3 deletions
+2
View File
@@ -91,6 +91,8 @@ func NewReranker(config *RerankerConfig) (Reranker, error) {
switch strings.ToLower(string(config.Source)) {
case string(types.ModelSourceRemote):
return NewOpenAIReranker(config)
case string(types.ModelSourceAliyun):
return NewAliyunReranker(config)
default:
return nil, fmt.Errorf("unsupported rerank model source: %s", config.Source)
}