mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: fixed an issue where the default value for temperature was not set when creating a new chat and install remark-gfm so that the markdown table can be displayed (#124)
* feat: install remark-gfm so that the markdown table can be displayed * feat: fixed an issue where the default value for temperature was not set when creating a new chat
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
import { ReactComponent as ChatConfigurationAtom } from '@/assets/svg/chat-configuration-atom.svg';
|
||||
import { IModalManagerChildrenProps } from '@/components/modal-manager';
|
||||
import {
|
||||
ModelVariableType,
|
||||
settledModelVariableMap,
|
||||
} from '@/constants/knowledge';
|
||||
import { IDialog } from '@/interfaces/database/chat';
|
||||
import { Divider, Flex, Form, Modal, Segmented, UploadFile } from 'antd';
|
||||
import { SegmentedValue } from 'antd/es/segmented';
|
||||
@ -130,6 +134,9 @@ const ChatConfigurationModal = ({
|
||||
}
|
||||
form.setFieldsValue({
|
||||
...initialDialog,
|
||||
llm_setting:
|
||||
initialDialog.llm_setting ??
|
||||
settledModelVariableMap[ModelVariableType.Precise],
|
||||
icon: fileList,
|
||||
llm_id: initialDialog.llm_id ?? modelId,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user