fix(cli): 修复检索命令中的 rerank 参数字段名

This commit is contained in:
zeyu.fz
2026-06-10 13:59:55 +08:00
parent a3c985c84e
commit 3395858c96
@@ -203,7 +203,7 @@ async function runWithAkSk(
};
if (flags.topK !== undefined) body.TopK = flags.topK as number;
if (flags.rerank) body.Rerank = true;
if (flags.rerank) body.EnableReranking = true;
if (flags.rerankTopN !== undefined) body.RerankTopN = flags.rerankTopN as number;
const pathname = `/${workspaceId}/index/retrieve`;