From 4240bad627d4f483dc6ccdd8b5e19feadba54012 Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 15 Jan 2025 19:35:11 +0800 Subject: [PATCH] fix: reranker selection --- src/pages/playground/components/ground-reranker.tsx | 1 + src/pages/playground/components/input-list.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/playground/components/ground-reranker.tsx b/src/pages/playground/components/ground-reranker.tsx index 55dfae09..151e895e 100644 --- a/src/pages/playground/components/ground-reranker.tsx +++ b/src/pages/playground/components/ground-reranker.tsx @@ -580,6 +580,7 @@ const GroundReranker: React.FC = forwardRef((props, ref) => { onChange={handleTextListChange} onSort={handleOnSort} extra={renderPercent} + onSelect={handleonSelect} onPaste={handleOnPaste} > {isEmptyText && ( diff --git a/src/pages/playground/components/input-list.tsx b/src/pages/playground/components/input-list.tsx index e882c3ff..1590adbf 100644 --- a/src/pages/playground/components/input-list.tsx +++ b/src/pages/playground/components/input-list.tsx @@ -36,6 +36,7 @@ interface InputListProps { end: number; beforeText: string; afterText: string; + index: number; }) => void; }