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
@@ -16,6 +16,7 @@ export interface InitializationConfig {
dimension?: number; // 添加embedding维度字段
};
rerank: {
source: string;
modelName: string;
baseUrl: string;
apiKey?: string;
@@ -235,6 +236,7 @@ export function testEmbeddingModel(modelConfig: {
export function checkRerankModel(modelConfig: {
source: string;
modelName: string;
baseUrl: string;
apiKey?: string;