Update doc (#4697)

* perf: share link tip

* udpate doc
This commit is contained in:
Archer
2025-04-28 14:19:42 +08:00
committed by GitHub
parent 293c0cdb40
commit 433e7ed911
9 changed files with 40 additions and 26 deletions

View File

@@ -126,15 +126,15 @@ services:
# fastgpt
sandbox:
container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
networks:
- fastgpt
restart: always
fastgpt-mcp-server:
container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
ports:
- 3005:3000
networks:
@@ -144,8 +144,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -103,15 +103,15 @@ services:
# fastgpt
sandbox:
container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
networks:
- fastgpt
restart: always
fastgpt-mcp-server:
container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
ports:
- 3005:3000
networks:
@@ -121,8 +121,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -85,15 +85,15 @@ services:
# fastgpt
sandbox:
container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
networks:
- fastgpt
restart: always
fastgpt-mcp-server:
container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
ports:
- 3005:3000
networks:
@@ -103,8 +103,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt:v4.9.7-fix-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -66,15 +66,15 @@ services:
sandbox:
container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
networks:
- fastgpt
restart: always
fastgpt-mcp-server:
container_name: fastgpt-mcp-server
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
ports:
- 3005:3000
networks:
@@ -84,8 +84,8 @@ services:
- FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.9.7 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -13,7 +13,7 @@ weight: 793
### 2. 更新镜像 tag
- 更新 FastGPT 镜像 tag: v4.9.7
- 更新 FastGPT 镜像 tag: v4.9.7-fix
- 更新 FastGPT 商业版镜像 tag: v4.9.7
- mcp_server 无需更新
- Sandbox 无需更新

View File

@@ -43,6 +43,7 @@
"input_guide_tip": "You can set up some preset questions. When the user inputs a question, related questions from these presets will be suggested.",
"input_placeholder_phone": "Please enter your question",
"insert_input_guide,_some_data_already_exists": "Duplicate data detected, automatically filtered, {{len}} items inserted",
"invalid_share_url": "Invalid sharing link",
"is_chatting": "Chatting in progress... please wait until it finishes",
"items": "Items",
"llm_tokens": "LLM tokens",

View File

@@ -43,6 +43,7 @@
"input_guide_tip": "可以配置一些预设的问题。在用户输入问题时,会从这些预设问题中获取相关问题进行提示。",
"input_placeholder_phone": "输入问题",
"insert_input_guide,_some_data_already_exists": "有重复数据,已自动过滤,共插入 {{len}} 条数据",
"invalid_share_url": "无效的分享链接",
"is_chatting": "正在聊天中...请等待结束",
"items": "条",
"llm_tokens": "LLM tokens",

View File

@@ -41,6 +41,7 @@
"input_guide_tip": "您可以設定一些預設問題。當使用者輸入問題時,系統會從這些預設問題中提供相關問題作為提示。",
"input_placeholder_phone": "請輸入問題",
"insert_input_guide,_some_data_already_exists": "偵測到重複資料,已自動過濾,共插入 {{len}} 筆資料",
"invalid_share_url": "無效的分享鏈接",
"is_chatting": "對話進行中...請稍候",
"items": "筆",
"llm_tokens": "LLM tokens",

View File

@@ -38,6 +38,7 @@ import { ChatSourceEnum } from '@fastgpt/global/core/chat/constants';
import { useI18nLng } from '@fastgpt/web/hooks/useI18n';
import { AppSchema } from '@fastgpt/global/core/app/type';
import ChatQuoteList from '@/pageComponents/chat/ChatQuoteList';
import { useToast } from '@fastgpt/web/hooks/useToast';
const CustomPluginRunBox = dynamic(() => import('@/pageComponents/chat/CustomPluginRunBox'));
@@ -314,6 +315,8 @@ const OutLink = (props: Props) => {
};
const Render = (props: Props) => {
const { t } = useTranslation();
const { toast } = useToast();
const { shareId, authToken, customUid, appId } = props;
const { localUId, setLocalUId, loaded } = useShareChatStore();
const { source, chatId, setSource, setAppId, setOutLinkAuthData } = useChatStore();
@@ -363,6 +366,14 @@ const Render = (props: Props) => {
useEffect(() => {
setAppId(appId);
}, [appId, setAppId]);
useMount(() => {
if (!appId) {
toast({
status: 'warning',
title: t('chat:invalid_share_url')
});
}
});
return source === ChatSourceEnum.share ? (
<ChatContextProvider params={chatHistoryProviderParams}>
@@ -409,7 +420,7 @@ export async function getServerSideProps(context: any) {
return {
props: {
appId: String(app?.appId) ?? '',
appId: app?.appId ? String(app?.appId) : '',
appName: app?.associatedApp?.name ?? 'AI',
appAvatar: app?.associatedApp?.avatar ?? '',
appIntro: app?.associatedApp?.intro ?? 'AI',