oenapi doc (#493)

* mongo init

* perf: mongo connect

* docs

* fix: select file

* format

* remove seed

* doc format

* doc

* perf: tts model type

* doc

* upload time

* doc

* doc

* doc
This commit is contained in:
Archer
2023-11-20 13:43:33 +08:00
committed by GitHub
parent 0df5152202
commit b05dd0fde1
37 changed files with 883 additions and 663 deletions

View File

@@ -247,7 +247,7 @@ const UserInfo = () => {
)}
</Flex>
</Box>
{feConfigs?.show_doc && (
{feConfigs?.docUrl && (
<>
<Flex
mt={4}

View File

@@ -52,11 +52,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
model: ttsConfig.model,
voice: ttsConfig.voice,
speed: ttsConfig.speed,
props: {
// temp code
baseUrl: ttsModel.baseUrl || '',
key: ttsModel.key || ''
},
onSuccess: async ({ model, buffer }) => {
try {
pushAudioSpeechBill({

View File

@@ -49,9 +49,8 @@ const defaultFeConfigs: FeConfigsType = {
show_emptyChat: true,
show_contact: true,
show_git: true,
show_doc: true,
docUrl: 'https://docs.fastgpt.run',
openAPIDocUrl: 'https://doc.fastgpt.run/docs/development/openapi',
docUrl: 'https://docs.fastgpt.in',
openAPIDocUrl: 'https://doc.fastgpt.in/docs/development/openapi',
systemTitle: 'FastGPT',
authorText: 'Made by FastGPT Team.',
limit: {

View File

@@ -353,7 +353,7 @@ function EditLinkModal({
/>
</Flex>
<Link
href={`${feConfigs.docUrl}/docs/development/openapi/#分享链接中增加额外-query`}
href={`${feConfigs.docUrl}/docs/development/openapi/share`}
target={'_blank'}
fontSize={'sm'}
color={'myGray.500'}

View File

@@ -41,7 +41,7 @@ const Navbar = () => {
}
]
: []),
...(feConfigs?.show_doc
...(feConfigs?.docUrl
? [
{
label: t('home.Docs'),

View File

@@ -141,7 +141,7 @@ const LoginForm = ({ setPageType, loginSuccess }: Props) => {
</Box>
</Flex>
{feConfigs?.show_doc && (
{feConfigs?.docUrl && (
<Box textAlign={'center'} mt={2} fontSize={'sm'}>
使{' '}
<Link

View File

@@ -39,7 +39,7 @@ const Tools = () => {
}
]
: []),
...(feConfigs?.show_doc
...(feConfigs?.docUrl
? [
{
icon: 'courseLight',