Add OpenAPI docs;Correct the glm document (#346)

This commit is contained in:
Archer
2023-09-25 14:28:44 +08:00
committed by GitHub
parent c9db9f33ea
commit 9136c9306a
19 changed files with 543 additions and 154 deletions

View File

@@ -612,6 +612,7 @@ const ChatBox = (
>
{item.obj === 'Human' && (
<>
{/* control icon */}
<Flex w={'100%'} alignItems={'center'} justifyContent={'flex-end'}>
<Flex {...controlContainerStyle} justifyContent={'flex-end'} mr={3}>
<MyTooltip label={t('common.Copy')}>
@@ -654,6 +655,7 @@ const ChatBox = (
</Flex>
<ChatAvatar src={userAvatar} type={'Human'} />
</Flex>
{/* content */}
<Box mt={['6px', 2]} textAlign={'right'}>
<Card
className="markdown"
@@ -670,6 +672,7 @@ const ChatBox = (
)}
{item.obj === 'AI' && (
<>
{/* control icon */}
<Flex w={'100%'} alignItems={'flex-end'}>
<ChatAvatar src={appAvatar} type={'AI'} />
<Flex
@@ -822,6 +825,7 @@ const ChatBox = (
</Flex>
)}
</Flex>
{/* content */}
<Box textAlign={'left'} mt={['6px', 2]}>
<Card bg={'white'} {...MessageCardStyle}>
<Markdown

View File

@@ -83,10 +83,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
API
</Box>
<Link
href={
feConfigs.openAPIUrl ||
'https://kjqvjse66l.feishu.cn/docx/DmLedTWtUoNGX8xui9ocdUEjnNh'
}
href={feConfigs.openAPIUrl || 'https://doc.fastgpt.run/docs/development/openapi'}
target={'_blank'}
ml={1}
color={'myBlue.600'}