Commit 229c8acd by heheer Committed by GitHub

fix rerank model undefined (#4674)

parent 1465999c
......@@ -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
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment