mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-21 05:16:54 +08:00
### What problem does this PR solve? Feat: Show multiple chat boxes #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
import { FileUploader } from '@/components/file-uploader';
|
||||
import { KnowledgeBaseFormField } from '@/components/knowledge-base-item';
|
||||
import { SwitchFormField } from '@/components/switch-fom-field';
|
||||
import { TavilyFormField } from '@/components/tavily-form-field';
|
||||
import {
|
||||
FormControl,
|
||||
FormField,
|
||||
@ -105,6 +106,7 @@ export default function ChatBasicSetting() {
|
||||
name={'prompt_config.tts'}
|
||||
label={t('tts')}
|
||||
></SwitchFormField>
|
||||
<TavilyFormField></TavilyFormField>
|
||||
<KnowledgeBaseFormField></KnowledgeBaseFormField>
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -68,8 +68,8 @@ export function ChatSettings({ switchSettingVisible }: ChatSettingsProps) {
|
||||
}, [data, form]);
|
||||
|
||||
return (
|
||||
<section className="p-5 w-[440px] ">
|
||||
<div className="flex justify-between items-center text-base">
|
||||
<section className="p-5 w-[440px] border-l">
|
||||
<div className="flex justify-between items-center text-base pb-2">
|
||||
Chat Settings
|
||||
<X className="size-4 cursor-pointer" onClick={switchSettingVisible} />
|
||||
</div>
|
||||
|
||||
@ -24,6 +24,7 @@ export function useChatSettingSchema() {
|
||||
optional: z.boolean(),
|
||||
}),
|
||||
),
|
||||
tavily_api_key: z.string().optional(),
|
||||
});
|
||||
|
||||
const formSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user