Skip to content

Commit 433e7ed

Browse files
authored
Update doc (#4697)
* perf: share link tip * udpate doc
1 parent 293c0cd commit 433e7ed

File tree

9 files changed

+40
-26
lines changed

9 files changed

+40
-26
lines changed

deploy/docker/docker-compose-milvus.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ services:
126126
# fastgpt
127127
sandbox:
128128
container_name: sandbox
129-
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
130-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
129+
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
130+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
131131
networks:
132132
- fastgpt
133133
restart: always
134134
fastgpt-mcp-server:
135135
container_name: fastgpt-mcp-server
136-
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
137-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
136+
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
137+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
138138
ports:
139139
- 3005:3000
140140
networks:
@@ -144,8 +144,8 @@ services:
144144
- FASTGPT_ENDPOINT=http://fastgpt:3000
145145
fastgpt:
146146
container_name: fastgpt
147-
image: ghcr.io/labring/fastgpt:v4.9.7 # git
148-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
147+
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
148+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
149149
ports:
150150
- 3000:3000
151151
networks:

deploy/docker/docker-compose-oceanbase/docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ services:
103103
# fastgpt
104104
sandbox:
105105
container_name: sandbox
106-
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
107-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
106+
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
107+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
108108
networks:
109109
- fastgpt
110110
restart: always
111111
fastgpt-mcp-server:
112112
container_name: fastgpt-mcp-server
113-
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
114-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
113+
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
114+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
115115
ports:
116116
- 3005:3000
117117
networks:
@@ -121,8 +121,8 @@ services:
121121
- FASTGPT_ENDPOINT=http://fastgpt:3000
122122
fastgpt:
123123
container_name: fastgpt
124-
image: ghcr.io/labring/fastgpt:v4.9.7 # git
125-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
124+
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
125+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
126126
ports:
127127
- 3000:3000
128128
networks:

deploy/docker/docker-compose-pgvector.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ services:
8585
# fastgpt
8686
sandbox:
8787
container_name: sandbox
88-
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
89-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
88+
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
89+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
9090
networks:
9191
- fastgpt
9292
restart: always
9393
fastgpt-mcp-server:
9494
container_name: fastgpt-mcp-server
95-
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
96-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
95+
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
96+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
9797
ports:
9898
- 3005:3000
9999
networks:
@@ -103,8 +103,8 @@ services:
103103
- FASTGPT_ENDPOINT=http://fastgpt:3000
104104
fastgpt:
105105
container_name: fastgpt
106-
image: ghcr.io/labring/fastgpt:v4.9.7 # git
107-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
106+
image: ghcr.io/labring/fastgpt:v4.9.7-fix-fix # git
107+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
108108
ports:
109109
- 3000:3000
110110
networks:

deploy/docker/docker-compose-zilliz.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ services:
6666

6767
sandbox:
6868
container_name: sandbox
69-
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
70-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
69+
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
70+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
7171
networks:
7272
- fastgpt
7373
restart: always
7474
fastgpt-mcp-server:
7575
container_name: fastgpt-mcp-server
76-
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
77-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7 # 阿里云
76+
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7-fix # git
77+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
7878
ports:
7979
- 3005:3000
8080
networks:
@@ -84,8 +84,8 @@ services:
8484
- FASTGPT_ENDPOINT=http://fastgpt:3000
8585
fastgpt:
8686
container_name: fastgpt
87-
image: ghcr.io/labring/fastgpt:v4.9.7 # git
88-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
87+
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
88+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
8989
ports:
9090
- 3000:3000
9191
networks:

docSite/content/zh-cn/docs/development/upgrading/497.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ weight: 793
1313

1414
### 2. 更新镜像 tag
1515

16-
- 更新 FastGPT 镜像 tag: v4.9.7
16+
- 更新 FastGPT 镜像 tag: v4.9.7-fix
1717
- 更新 FastGPT 商业版镜像 tag: v4.9.7
1818
- mcp_server 无需更新
1919
- Sandbox 无需更新

packages/web/i18n/en/chat.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"input_guide_tip": "You can set up some preset questions. When the user inputs a question, related questions from these presets will be suggested.",
4444
"input_placeholder_phone": "Please enter your question",
4545
"insert_input_guide,_some_data_already_exists": "Duplicate data detected, automatically filtered, {{len}} items inserted",
46+
"invalid_share_url": "Invalid sharing link",
4647
"is_chatting": "Chatting in progress... please wait until it finishes",
4748
"items": "Items",
4849
"llm_tokens": "LLM tokens",

packages/web/i18n/zh-CN/chat.json

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

packages/web/i18n/zh-Hant/chat.json

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

projects/app/src/pages/chat/share.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { ChatSourceEnum } from '@fastgpt/global/core/chat/constants';
3838
import { useI18nLng } from '@fastgpt/web/hooks/useI18n';
3939
import { AppSchema } from '@fastgpt/global/core/app/type';
4040
import ChatQuoteList from '@/pageComponents/chat/ChatQuoteList';
41+
import { useToast } from '@fastgpt/web/hooks/useToast';
4142

4243
const CustomPluginRunBox = dynamic(() => import('@/pageComponents/chat/CustomPluginRunBox'));
4344

@@ -314,6 +315,8 @@ const OutLink = (props: Props) => {
314315
};
315316

316317
const Render = (props: Props) => {
318+
const { t } = useTranslation();
319+
const { toast } = useToast();
317320
const { shareId, authToken, customUid, appId } = props;
318321
const { localUId, setLocalUId, loaded } = useShareChatStore();
319322
const { source, chatId, setSource, setAppId, setOutLinkAuthData } = useChatStore();
@@ -363,6 +366,14 @@ const Render = (props: Props) => {
363366
useEffect(() => {
364367
setAppId(appId);
365368
}, [appId, setAppId]);
369+
useMount(() => {
370+
if (!appId) {
371+
toast({
372+
status: 'warning',
373+
title: t('chat:invalid_share_url')
374+
});
375+
}
376+
});
366377

367378
return source === ChatSourceEnum.share ? (
368379
<ChatContextProvider params={chatHistoryProviderParams}>
@@ -409,7 +420,7 @@ export async function getServerSideProps(context: any) {
409420

410421
return {
411422
props: {
412-
appId: String(app?.appId) ?? '',
423+
appId: app?.appId ? String(app?.appId) : '',
413424
appName: app?.associatedApp?.name ?? 'AI',
414425
appAvatar: app?.associatedApp?.avatar ?? '',
415426
appIntro: app?.associatedApp?.intro ?? 'AI',

0 commit comments

Comments
 (0)