fix rerank model undefined (#4674)

This commit is contained in:
heheer 2025-04-27 11:53:09 +08:00 committed by GitHub
parent 1465999c46
commit 229c8acdb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,7 +177,7 @@ export async function dispatchDatasetSearch(
}); });
// Rerank // Rerank
const { totalPoints: reRankTotalPoints, modelName: reRankModelName } = formatModelChars2Points({ const { totalPoints: reRankTotalPoints, modelName: reRankModelName } = formatModelChars2Points({
model: rerankModelData.model, model: rerankModelData?.model,
inputTokens: reRankInputTokens, inputTokens: reRankInputTokens,
modelType: ModelTypeEnum.rerank modelType: ModelTypeEnum.rerank
}); });