mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 20:27:45 +00:00
Change embedding (#1463)
* rebuild embedding queue * dataset menu * feat: rebuild data api * feat: ui change embedding model * dataset ui * feat: rebuild index ui * rename collection
This commit is contained in:
@@ -8,8 +8,13 @@ import MySelect, { SelectProps } from '@fastgpt/web/components/common/MySelect';
|
||||
import { HUGGING_FACE_ICON, LOGO_ICON } from '@fastgpt/global/common/system/constants';
|
||||
import { Box, Flex } from '@chakra-ui/react';
|
||||
import Avatar from '../Avatar';
|
||||
import MyTooltip from '@fastgpt/web/components/common/MyTooltip';
|
||||
|
||||
const AIModelSelector = ({ list, onchange, ...props }: SelectProps) => {
|
||||
type Props = SelectProps & {
|
||||
disableTip?: string;
|
||||
};
|
||||
|
||||
const AIModelSelector = ({ list, onchange, disableTip, ...props }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const { feConfigs, llmModelList, vectorModelList } = useSystemStore();
|
||||
const router = useRouter();
|
||||
@@ -62,9 +67,9 @@ const AIModelSelector = ({ list, onchange, ...props }: SelectProps) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<MySelect list={expandList} {...props} onchange={onSelect} />
|
||||
</>
|
||||
<MyTooltip label={disableTip}>
|
||||
<MySelect isDisabled={!!disableTip} list={expandList} {...props} onchange={onSelect} />
|
||||
</MyTooltip>
|
||||
);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user