diff --git a/packages/global/support/outLink/type.d.ts b/packages/global/support/outLink/type.d.ts index 964a42222..a9e19655c 100644 --- a/packages/global/support/outLink/type.d.ts +++ b/packages/global/support/outLink/type.d.ts @@ -67,11 +67,11 @@ export type OutLinkSchema = { // whether to show the quote showCite: boolean; // whether to show the running status - showRunningStatus?: boolean; + showRunningStatus: boolean; // whether to show the full text reader - showFullText?: boolean; + showFullText: boolean; // whether can download source - canDownloadSource?: boolean; + canDownloadSource: boolean; // response when request immediateResponse?: string; @@ -94,10 +94,10 @@ export type OutLinkSchema = { export type OutLinkEditType = { _id?: string; name: string; - showCite?: OutLinkSchema['showCite']; - showRunningStatus?: OutLinkSchema['showRunningStatus']; - showFullText?: OutLinkSchema['showFullText']; - canDownloadSource?: OutLinkSchema['canDownloadSource']; + showCite: OutLinkSchema['showCite']; + showRunningStatus: OutLinkSchema['showRunningStatus']; + showFullText: OutLinkSchema['showFullText']; + canDownloadSource: OutLinkSchema['canDownloadSource']; // response when request immediateResponse?: string; // response when error or other situation diff --git a/packages/service/support/outLink/schema.ts b/packages/service/support/outLink/schema.ts index ecc1f4b29..76b4ba1b6 100644 --- a/packages/service/support/outLink/schema.ts +++ b/packages/service/support/outLink/schema.ts @@ -43,19 +43,21 @@ const OutLinkSchema = new Schema({ type: Date }, + showRunningStatus: { + type: Boolean, + default: false + }, showCite: { type: Boolean, default: false }, - showRunningStatus: { - type: Boolean, - default: true - }, showFullText: { - type: Boolean + type: Boolean, + default: false }, canDownloadSource: { - type: Boolean + type: Boolean, + default: false }, limit: { maxUsagePoints: { diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx index 7a5103314..c399630b7 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx @@ -50,7 +50,6 @@ const ResponseTags = ({ const chatTime = historyItem.time || new Date(); const durationSeconds = historyItem.durationSeconds || 0; const isResponseDetail = useContextSelector(ChatItemContext, (v) => v.isShowQuote); - console.log('isResponseDetail', isResponseDetail); const { totalQuoteList: quoteList = [], llmModuleAccount = 0, diff --git a/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx index 9a1ed5f03..8f7cc9927 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Link/index.tsx @@ -182,10 +182,10 @@ const Share = ({ appId }: { appId: string; type: PublishChannelEnum }) => { setEditLinkData({ _id: item._id, name: item.name, - showCite: item.showCite ?? false, - canDownloadSource: item.canDownloadSource ?? false, - showFullText: item.showFullText ?? true, - showRunningStatus: item.showRunningStatus ?? false, + showCite: item.showCite, + canDownloadSource: item.canDownloadSource, + showFullText: item.showFullText, + showRunningStatus: item.showRunningStatus, limit: item.limit }) }, diff --git a/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx index ce5186ef4..a57a8424e 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react'; -import { Box, Flex, Grid, Switch, Button, Link } from '@chakra-ui/react'; +import { Box, Flex, Grid, Switch } from '@chakra-ui/react'; import { useTranslation } from 'next-i18next'; import { useForm } from 'react-hook-form'; import FormLabel from '@fastgpt/web/components/common/MyBox/FormLabel'; diff --git a/projects/app/src/pages/api/support/outLink/playground/update.ts b/projects/app/src/pages/api/support/outLink/playground/update.ts index dee1c6aef..62b1cf21c 100644 --- a/projects/app/src/pages/api/support/outLink/playground/update.ts +++ b/projects/app/src/pages/api/support/outLink/playground/update.ts @@ -32,10 +32,10 @@ async function handler(req: ApiRequestProps