mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-16 16:04:34 +00:00
fix rerank model undefined (#4674)
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user