feat: dataset quote role support system; fix: adapt o1 model (#2733)

* feat: dataset quote support system role

* perf: adapt dataset quote role

* fix: adapt o1 model
This commit is contained in:
Archer
2024-09-18 13:38:50 +08:00
committed by GitHub
parent 539bc77934
commit 093bfa2134
35 changed files with 582 additions and 268 deletions

View File

@@ -0,0 +1,18 @@
import React from 'react';
import { Box, HStack, Icon, StackProps } from '@chakra-ui/react';
const LightTip = ({
text,
...props
}: {
text: string;
} & StackProps) => {
return (
<HStack px="3" py="1" color="primary.600" bgColor="primary.50" borderRadius="md" {...props}>
<Icon name="common/info" w="1rem" />
<Box fontSize={'sm'}>{text}</Box>
</HStack>
);
};
export default LightTip;

View File

@@ -10,7 +10,7 @@ const FormLabel = ({
children: React.ReactNode;
}) => {
return (
<Box color={'myGray.900'} fontSize={'sm'} position={'relative'} {...props}>
<Box color={'myGray.900'} fontSize={'sm'} position={'relative'} flexShrink={0} {...props}>
{required && (
<Box color={'red.600'} position={'absolute'} top={'-4px'} left={'-6px'}>
*

View File

@@ -64,8 +64,9 @@ export default function VariablePickerPlugin({
borderRadius={'md'}
position={'absolute'}
w={'auto'}
overflow={'hidden'}
zIndex={99999}
maxH={'300px'}
overflow={'auto'}
>
{variables.map((item, index) => (
<Flex