Feat: Save the configuration information of the knowledge base document #3221 (#7317)

### What problem does this PR solve?

Feat: Save the configuration information of the knowledge base document
#3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-04-25 17:31:28 +08:00
committed by GitHub
parent b271cc34b3
commit fef44a71c5
9 changed files with 265 additions and 60 deletions

View File

@ -83,7 +83,7 @@ const RaptorFormFields = () => {
render={({ field }) => (
<FormItem>
<FormLabel tooltip={t('promptTip')}>{t('prompt')}</FormLabel>
<FormControl defaultValue={t('promptText')}>
<FormControl>
<Textarea {...field} rows={8} />
</FormControl>
<FormMessage />
@ -124,7 +124,11 @@ const RaptorFormFields = () => {
<FormControl defaultValue={0}>
<div className="flex gap-4">
<Input {...field} />
<Button size={'sm'} onClick={handleGenerate}>
<Button
size={'sm'}
onClick={handleGenerate}
type={'button'}
>
<Plus />
</Button>
</div>