mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
Fixes: Added session variable types and modified configuration (#11269)
### What problem does this PR solve? Fixes: Added session variable types and modified configuration - Added more types of session variables - Modified the embedding model switching logic in the knowledge base configuration ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -39,7 +39,7 @@ import { useParams } from 'umi';
|
||||
import AgentCanvas from './canvas';
|
||||
import { DropdownProvider } from './canvas/context';
|
||||
import { Operator } from './constant';
|
||||
import { GobalParamSheet } from './gobal-variable-sheet';
|
||||
import { GlobalParamSheet } from './gobal-variable-sheet';
|
||||
import { useCancelCurrentDataflow } from './hooks/use-cancel-dataflow';
|
||||
import { useHandleExportJsonFile } from './hooks/use-export-json';
|
||||
import { useFetchDataOnMount } from './hooks/use-fetch-data';
|
||||
@ -126,9 +126,9 @@ export default function Agent() {
|
||||
} = useSetModalState();
|
||||
|
||||
const {
|
||||
visible: gobalParamSheetVisible,
|
||||
showModal: showGobalParamSheet,
|
||||
hideModal: hideGobalParamSheet,
|
||||
visible: globalParamSheetVisible,
|
||||
showModal: showGlobalParamSheet,
|
||||
hideModal: hideGlobalParamSheet,
|
||||
} = useSetModalState();
|
||||
|
||||
const {
|
||||
@ -216,7 +216,7 @@ export default function Agent() {
|
||||
</ButtonLoading>
|
||||
<ButtonLoading
|
||||
variant={'secondary'}
|
||||
onClick={() => showGobalParamSheet()}
|
||||
onClick={() => showGlobalParamSheet()}
|
||||
loading={loading}
|
||||
>
|
||||
<MessageSquareCode /> {t('flow.conversationVariable')}
|
||||
@ -314,11 +314,11 @@ export default function Agent() {
|
||||
loading={pipelineRunning}
|
||||
></PipelineRunSheet>
|
||||
)}
|
||||
{gobalParamSheetVisible && (
|
||||
<GobalParamSheet
|
||||
{globalParamSheetVisible && (
|
||||
<GlobalParamSheet
|
||||
data={{}}
|
||||
hideModal={hideGobalParamSheet}
|
||||
></GobalParamSheet>
|
||||
hideModal={hideGlobalParamSheet}
|
||||
></GlobalParamSheet>
|
||||
)}
|
||||
</section>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user