From e4bd879686a23209c8ffc81fe57b30bba8d3ffc6 Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 10 Feb 2025 16:49:07 +0800 Subject: [PATCH] Feat: Modify the Preset configurations item style to distinguish it from other fields #4844 (#4845) ### What problem does this PR solve? Feat: Modify the Preset configurations item style to distinguish it from other fields #4844 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- .../components/llm-setting-items/index.tsx | 495 ++++++++++-------- 1 file changed, 263 insertions(+), 232 deletions(-) diff --git a/web/src/components/llm-setting-items/index.tsx b/web/src/components/llm-setting-items/index.tsx index f665aa0b1..158761c3e 100644 --- a/web/src/components/llm-setting-items/index.tsx +++ b/web/src/components/llm-setting-items/index.tsx @@ -3,11 +3,12 @@ import { ModelVariableType, settledModelVariableMap, } from '@/constants/knowledge'; -import { Divider, Flex, Form, InputNumber, Select, Slider, Switch } from 'antd'; +import { Flex, Form, InputNumber, Select, Slider, Switch, Tooltip } from 'antd'; import camelCase from 'lodash/camelCase'; import { useTranslate } from '@/hooks/common-hooks'; import { useComposeLlmOptionsByModelTypes } from '@/hooks/llm-hooks'; +import { QuestionCircleOutlined } from '@ant-design/icons'; import { useCallback, useMemo } from 'react'; import styles from './index.less'; @@ -55,239 +56,269 @@ const LlmSettingItems = ({ prefix, formItemLayout = {} }: IProps) => { >