parent
293c0cdb40
commit
433e7ed911
@ -126,15 +126,15 @@ services:
|
|||||||
# fastgpt
|
# fastgpt
|
||||||
sandbox:
|
sandbox:
|
||||||
container_name: sandbox
|
container_name: sandbox
|
||||||
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
|
||||||
networks:
|
networks:
|
||||||
- fastgpt
|
- fastgpt
|
||||||
restart: always
|
restart: always
|
||||||
fastgpt-mcp-server:
|
fastgpt-mcp-server:
|
||||||
container_name: fastgpt-mcp-server
|
container_name: fastgpt-mcp-server
|
||||||
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
|
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 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3005:3000
|
- 3005:3000
|
||||||
networks:
|
networks:
|
||||||
@ -144,8 +144,8 @@ services:
|
|||||||
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
||||||
fastgpt:
|
fastgpt:
|
||||||
container_name: fastgpt
|
container_name: fastgpt
|
||||||
image: ghcr.io/labring/fastgpt:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@ -103,15 +103,15 @@ services:
|
|||||||
# fastgpt
|
# fastgpt
|
||||||
sandbox:
|
sandbox:
|
||||||
container_name: sandbox
|
container_name: sandbox
|
||||||
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
|
||||||
networks:
|
networks:
|
||||||
- fastgpt
|
- fastgpt
|
||||||
restart: always
|
restart: always
|
||||||
fastgpt-mcp-server:
|
fastgpt-mcp-server:
|
||||||
container_name: fastgpt-mcp-server
|
container_name: fastgpt-mcp-server
|
||||||
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
|
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 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3005:3000
|
- 3005:3000
|
||||||
networks:
|
networks:
|
||||||
@ -121,8 +121,8 @@ services:
|
|||||||
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
||||||
fastgpt:
|
fastgpt:
|
||||||
container_name: fastgpt
|
container_name: fastgpt
|
||||||
image: ghcr.io/labring/fastgpt:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@ -85,15 +85,15 @@ services:
|
|||||||
# fastgpt
|
# fastgpt
|
||||||
sandbox:
|
sandbox:
|
||||||
container_name: sandbox
|
container_name: sandbox
|
||||||
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
|
||||||
networks:
|
networks:
|
||||||
- fastgpt
|
- fastgpt
|
||||||
restart: always
|
restart: always
|
||||||
fastgpt-mcp-server:
|
fastgpt-mcp-server:
|
||||||
container_name: fastgpt-mcp-server
|
container_name: fastgpt-mcp-server
|
||||||
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
|
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 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3005:3000
|
- 3005:3000
|
||||||
networks:
|
networks:
|
||||||
@ -103,8 +103,8 @@ services:
|
|||||||
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
||||||
fastgpt:
|
fastgpt:
|
||||||
container_name: fastgpt
|
container_name: fastgpt
|
||||||
image: ghcr.io/labring/fastgpt:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt:v4.9.7-fix-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@ -66,15 +66,15 @@ services:
|
|||||||
|
|
||||||
sandbox:
|
sandbox:
|
||||||
container_name: sandbox
|
container_name: sandbox
|
||||||
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt-sandbox:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.7-fix # 阿里云
|
||||||
networks:
|
networks:
|
||||||
- fastgpt
|
- fastgpt
|
||||||
restart: always
|
restart: always
|
||||||
fastgpt-mcp-server:
|
fastgpt-mcp-server:
|
||||||
container_name: fastgpt-mcp-server
|
container_name: fastgpt-mcp-server
|
||||||
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.7 # git
|
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 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3005:3000
|
- 3005:3000
|
||||||
networks:
|
networks:
|
||||||
@ -84,8 +84,8 @@ services:
|
|||||||
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
- FASTGPT_ENDPOINT=http://fastgpt:3000
|
||||||
fastgpt:
|
fastgpt:
|
||||||
container_name: fastgpt
|
container_name: fastgpt
|
||||||
image: ghcr.io/labring/fastgpt:v4.9.7 # git
|
image: ghcr.io/labring/fastgpt:v4.9.7-fix # git
|
||||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7 # 阿里云
|
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.7-fix # 阿里云
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@ -13,7 +13,7 @@ weight: 793
|
|||||||
|
|
||||||
### 2. 更新镜像 tag
|
### 2. 更新镜像 tag
|
||||||
|
|
||||||
- 更新 FastGPT 镜像 tag: v4.9.7
|
- 更新 FastGPT 镜像 tag: v4.9.7-fix
|
||||||
- 更新 FastGPT 商业版镜像 tag: v4.9.7
|
- 更新 FastGPT 商业版镜像 tag: v4.9.7
|
||||||
- mcp_server 无需更新
|
- mcp_server 无需更新
|
||||||
- Sandbox 无需更新
|
- Sandbox 无需更新
|
||||||
|
|||||||
@ -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_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",
|
"input_placeholder_phone": "Please enter your question",
|
||||||
"insert_input_guide,_some_data_already_exists": "Duplicate data detected, automatically filtered, {{len}} items inserted",
|
"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",
|
"is_chatting": "Chatting in progress... please wait until it finishes",
|
||||||
"items": "Items",
|
"items": "Items",
|
||||||
"llm_tokens": "LLM tokens",
|
"llm_tokens": "LLM tokens",
|
||||||
|
|||||||
@ -43,6 +43,7 @@
|
|||||||
"input_guide_tip": "可以配置一些预设的问题。在用户输入问题时,会从这些预设问题中获取相关问题进行提示。",
|
"input_guide_tip": "可以配置一些预设的问题。在用户输入问题时,会从这些预设问题中获取相关问题进行提示。",
|
||||||
"input_placeholder_phone": "输入问题",
|
"input_placeholder_phone": "输入问题",
|
||||||
"insert_input_guide,_some_data_already_exists": "有重复数据,已自动过滤,共插入 {{len}} 条数据",
|
"insert_input_guide,_some_data_already_exists": "有重复数据,已自动过滤,共插入 {{len}} 条数据",
|
||||||
|
"invalid_share_url": "无效的分享链接",
|
||||||
"is_chatting": "正在聊天中...请等待结束",
|
"is_chatting": "正在聊天中...请等待结束",
|
||||||
"items": "条",
|
"items": "条",
|
||||||
"llm_tokens": "LLM tokens",
|
"llm_tokens": "LLM tokens",
|
||||||
|
|||||||
@ -41,6 +41,7 @@
|
|||||||
"input_guide_tip": "您可以設定一些預設問題。當使用者輸入問題時,系統會從這些預設問題中提供相關問題作為提示。",
|
"input_guide_tip": "您可以設定一些預設問題。當使用者輸入問題時,系統會從這些預設問題中提供相關問題作為提示。",
|
||||||
"input_placeholder_phone": "請輸入問題",
|
"input_placeholder_phone": "請輸入問題",
|
||||||
"insert_input_guide,_some_data_already_exists": "偵測到重複資料,已自動過濾,共插入 {{len}} 筆資料",
|
"insert_input_guide,_some_data_already_exists": "偵測到重複資料,已自動過濾,共插入 {{len}} 筆資料",
|
||||||
|
"invalid_share_url": "無效的分享鏈接",
|
||||||
"is_chatting": "對話進行中...請稍候",
|
"is_chatting": "對話進行中...請稍候",
|
||||||
"items": "筆",
|
"items": "筆",
|
||||||
"llm_tokens": "LLM tokens",
|
"llm_tokens": "LLM tokens",
|
||||||
|
|||||||
@ -38,6 +38,7 @@ import { ChatSourceEnum } from '@fastgpt/global/core/chat/constants';
|
|||||||
import { useI18nLng } from '@fastgpt/web/hooks/useI18n';
|
import { useI18nLng } from '@fastgpt/web/hooks/useI18n';
|
||||||
import { AppSchema } from '@fastgpt/global/core/app/type';
|
import { AppSchema } from '@fastgpt/global/core/app/type';
|
||||||
import ChatQuoteList from '@/pageComponents/chat/ChatQuoteList';
|
import ChatQuoteList from '@/pageComponents/chat/ChatQuoteList';
|
||||||
|
import { useToast } from '@fastgpt/web/hooks/useToast';
|
||||||
|
|
||||||
const CustomPluginRunBox = dynamic(() => import('@/pageComponents/chat/CustomPluginRunBox'));
|
const CustomPluginRunBox = dynamic(() => import('@/pageComponents/chat/CustomPluginRunBox'));
|
||||||
|
|
||||||
@ -314,6 +315,8 @@ const OutLink = (props: Props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const Render = (props: Props) => {
|
const Render = (props: Props) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const { toast } = useToast();
|
||||||
const { shareId, authToken, customUid, appId } = props;
|
const { shareId, authToken, customUid, appId } = props;
|
||||||
const { localUId, setLocalUId, loaded } = useShareChatStore();
|
const { localUId, setLocalUId, loaded } = useShareChatStore();
|
||||||
const { source, chatId, setSource, setAppId, setOutLinkAuthData } = useChatStore();
|
const { source, chatId, setSource, setAppId, setOutLinkAuthData } = useChatStore();
|
||||||
@ -363,6 +366,14 @@ const Render = (props: Props) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setAppId(appId);
|
setAppId(appId);
|
||||||
}, [appId, setAppId]);
|
}, [appId, setAppId]);
|
||||||
|
useMount(() => {
|
||||||
|
if (!appId) {
|
||||||
|
toast({
|
||||||
|
status: 'warning',
|
||||||
|
title: t('chat:invalid_share_url')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return source === ChatSourceEnum.share ? (
|
return source === ChatSourceEnum.share ? (
|
||||||
<ChatContextProvider params={chatHistoryProviderParams}>
|
<ChatContextProvider params={chatHistoryProviderParams}>
|
||||||
@ -409,7 +420,7 @@ export async function getServerSideProps(context: any) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
appId: String(app?.appId) ?? '',
|
appId: app?.appId ? String(app?.appId) : '',
|
||||||
appName: app?.associatedApp?.name ?? 'AI',
|
appName: app?.associatedApp?.name ?? 'AI',
|
||||||
appAvatar: app?.associatedApp?.avatar ?? '',
|
appAvatar: app?.associatedApp?.avatar ?? '',
|
||||||
appIntro: app?.associatedApp?.intro ?? 'AI',
|
appIntro: app?.associatedApp?.intro ?? 'AI',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user