mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix rerank model undefined (#4674)
This commit is contained in:
parent
1465999c46
commit
229c8acdb9
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue