mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 11:05:30 +08:00
### What problem does this PR solve? Feat: Add memory multi-select dropdown to recall and message operator forms. #4213 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { MemoriesFormField } from '@/components/memories-form-field';
|
||||
import { BlockButton, Button } from '@/components/ui/button';
|
||||
import {
|
||||
Form,
|
||||
@ -40,6 +41,7 @@ function MessageForm({ node }: INextOperatorForm) {
|
||||
output_format: z.string().optional(),
|
||||
auto_play: z.boolean().optional(),
|
||||
status: z.number().optional(),
|
||||
memory_ids: z.array(z.string()).optional(),
|
||||
});
|
||||
|
||||
const form = useForm({
|
||||
@ -159,6 +161,7 @@ function MessageForm({ node }: INextOperatorForm) {
|
||||
</FormItem>
|
||||
</>
|
||||
)}
|
||||
<MemoriesFormField label={t('flow.saveToMemory')}></MemoriesFormField>
|
||||
</FormWrapper>
|
||||
</Form>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user