mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: add llm Select to KeywordExtractForm #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -365,6 +365,7 @@ export const useSaveGraphBeforeOpeningDebugDrawer = (show: () => void) => {
|
||||
const { id } = useParams();
|
||||
const { saveGraph } = useSaveGraph();
|
||||
const { resetFlow } = useResetFlow();
|
||||
const { refetch } = useFetchFlow();
|
||||
const { send } = useSendMessageWithSse(api.runCanvas);
|
||||
const handleRun = useCallback(async () => {
|
||||
const saveRet = await saveGraph();
|
||||
@ -373,6 +374,7 @@ export const useSaveGraphBeforeOpeningDebugDrawer = (show: () => void) => {
|
||||
const resetRet = await resetFlow();
|
||||
// After resetting, all previous messages will be cleared.
|
||||
if (resetRet?.retcode === 0) {
|
||||
refetch();
|
||||
// fetch prologue
|
||||
const sendRet = await send({ id });
|
||||
if (receiveMessageError(sendRet)) {
|
||||
@ -382,7 +384,7 @@ export const useSaveGraphBeforeOpeningDebugDrawer = (show: () => void) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [saveGraph, resetFlow, id, send, show]);
|
||||
}, [saveGraph, resetFlow, id, send, show, refetch]);
|
||||
|
||||
return handleRun;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user