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

View File

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