mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Displays the embedded page of the chat module #3221 Feat: Let the agen operator support the selection of tts model #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
31 lines
862 B
TypeScript
31 lines
862 B
TypeScript
import { Modal } from '@/components/ui/modal/modal';
|
|
import { IModalProps } from '@/interfaces/common';
|
|
import DebugContent from '@/pages/agent/debug-content';
|
|
import { buildBeginInputListFromObject } from '@/pages/agent/form/begin-form/utils';
|
|
import { BeginQuery } from '@/pages/agent/interface';
|
|
|
|
interface IProps extends IModalProps<any> {
|
|
ok(parameters: any[]): void;
|
|
data: Record<string, Omit<BeginQuery, 'key'>>;
|
|
}
|
|
export function ParameterDialog({ ok, data }: IProps) {
|
|
return (
|
|
<Modal
|
|
open
|
|
title={'Parameter'}
|
|
closable={false}
|
|
showfooter={false}
|
|
maskClosable={false}
|
|
>
|
|
<div className="mb-8">
|
|
<DebugContent
|
|
parameters={buildBeginInputListFromObject(data)}
|
|
ok={ok}
|
|
isNext={false}
|
|
btnText={'Submit'}
|
|
></DebugContent>
|
|
</div>
|
|
</Modal>
|
|
);
|
|
}
|