diff --git a/deploy/docker/docker-compose-milvus.yml b/deploy/docker/docker-compose-milvus.yml index 52a16cdbd..46a539adb 100644 --- a/deploy/docker/docker-compose-milvus.yml +++ b/deploy/docker/docker-compose-milvus.yml @@ -151,8 +151,8 @@ services: fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.12.1-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.1-fix # 阿里云 ports: - 3000:3000 networks: @@ -209,15 +209,15 @@ services: - ./config.json:/app/data/config.json sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.1 # 阿里云 networks: - fastgpt restart: always fastgpt-mcp-server: container_name: fastgpt-mcp-server - image: ghcr.io/labring/fastgpt-mcp_server:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-mcp_server:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.1 # 阿里云 ports: - 3005:3000 networks: @@ -226,8 +226,8 @@ services: environment: - FASTGPT_ENDPOINT=http://fastgpt:3000 fastgpt-plugin: - image: ghcr.io/labring/fastgpt-plugin:v0.1.9 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.9 # 阿里云 + image: ghcr.io/labring/fastgpt-plugin:v0.1.10 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.10 # 阿里云 container_name: fastgpt-plugin restart: always networks: diff --git a/deploy/docker/docker-compose-oceanbase/docker-compose.yml b/deploy/docker/docker-compose-oceanbase/docker-compose.yml index 0efacec61..8ed69f5c0 100644 --- a/deploy/docker/docker-compose-oceanbase/docker-compose.yml +++ b/deploy/docker/docker-compose-oceanbase/docker-compose.yml @@ -126,8 +126,8 @@ services: fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.12.1-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.1-fix # 阿里云 ports: - 3000:3000 networks: @@ -183,15 +183,15 @@ services: - ./config.json:/app/data/config.json sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.1 # 阿里云 networks: - fastgpt restart: always fastgpt-mcp-server: container_name: fastgpt-mcp-server - image: ghcr.io/labring/fastgpt-mcp_server:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-mcp_server:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.1 # 阿里云 ports: - 3005:3000 networks: @@ -200,8 +200,8 @@ services: environment: - FASTGPT_ENDPOINT=http://fastgpt:3000 fastgpt-plugin: - image: ghcr.io/labring/fastgpt-plugin:v0.1.9 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.9 # 阿里云 + image: ghcr.io/labring/fastgpt-plugin:v0.1.10 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.10 # 阿里云 container_name: fastgpt-plugin restart: always networks: diff --git a/deploy/docker/docker-compose-pgvector.yml b/deploy/docker/docker-compose-pgvector.yml index c502da1b1..61bf40cf2 100644 --- a/deploy/docker/docker-compose-pgvector.yml +++ b/deploy/docker/docker-compose-pgvector.yml @@ -112,8 +112,8 @@ services: fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.12.1-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.1-fix # 阿里云 ports: - 3000:3000 networks: @@ -169,15 +169,15 @@ services: - ./config.json:/app/data/config.json sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.1 # 阿里云 networks: - fastgpt restart: always fastgpt-mcp-server: container_name: fastgpt-mcp-server - image: ghcr.io/labring/fastgpt-mcp_server:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-mcp_server:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.1 # 阿里云 ports: - 3005:3000 networks: @@ -186,8 +186,8 @@ services: environment: - FASTGPT_ENDPOINT=http://fastgpt:3000 fastgpt-plugin: - image: ghcr.io/labring/fastgpt-plugin:v0.1.9 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.9 # 阿里云 + image: ghcr.io/labring/fastgpt-plugin:v0.1.10 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.10 # 阿里云 container_name: fastgpt-plugin restart: always networks: diff --git a/deploy/docker/docker-compose-zilliz.yml b/deploy/docker/docker-compose-zilliz.yml index 1c4a8eef4..72419de74 100644 --- a/deploy/docker/docker-compose-zilliz.yml +++ b/deploy/docker/docker-compose-zilliz.yml @@ -92,8 +92,8 @@ services: fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.12.1-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.1-fix # 阿里云 ports: - 3000:3000 networks: @@ -151,15 +151,15 @@ services: - ./config.json:/app/data/config.json sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.1 # 阿里云 networks: - fastgpt restart: always fastgpt-mcp-server: container_name: fastgpt-mcp-server - image: ghcr.io/labring/fastgpt-mcp_server:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-mcp_server:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.1 # 阿里云 ports: - 3005:3000 networks: @@ -168,8 +168,8 @@ services: environment: - FASTGPT_ENDPOINT=http://fastgpt:3000 fastgpt-plugin: - image: ghcr.io/labring/fastgpt-plugin:v0.1.9 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.9 # 阿里云 + image: ghcr.io/labring/fastgpt-plugin:v0.1.10 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.10 # 阿里云 container_name: fastgpt-plugin restart: always networks: diff --git a/deploy/docker/yml.js b/deploy/docker/yml.js index 72fab80c7..45cceac4b 100644 --- a/deploy/docker/yml.js +++ b/deploy/docker/yml.js @@ -95,8 +95,8 @@ services: fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.12.1-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.12.1-fix # 阿里云 ports: - 3000:3000 networks: @@ -152,15 +152,15 @@ services: - ./config.json:/app/data/config.json sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.12.1 # 阿里云 networks: - fastgpt restart: always fastgpt-mcp-server: container_name: fastgpt-mcp-server - image: ghcr.io/labring/fastgpt-mcp_server:v4.12.0 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.0 # 阿里云 + image: ghcr.io/labring/fastgpt-mcp_server:v4.12.1 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.12.1 # 阿里云 ports: - 3005:3000 networks: @@ -169,8 +169,8 @@ services: environment: - FASTGPT_ENDPOINT=http://fastgpt:3000 fastgpt-plugin: - image: ghcr.io/labring/fastgpt-plugin:v0.1.9 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.9 # 阿里云 + image: ghcr.io/labring/fastgpt-plugin:v0.1.10 # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1.10 # 阿里云 container_name: fastgpt-plugin restart: always networks: diff --git a/document/content/docs/upgrading/4-12/4121.mdx b/document/content/docs/upgrading/4-12/4121.mdx index 9234e79c5..7a8ccf605 100644 --- a/document/content/docs/upgrading/4-12/4121.mdx +++ b/document/content/docs/upgrading/4-12/4121.mdx @@ -7,7 +7,7 @@ description: 'FastGPT V4.12.1 更新说明' ### 1. 更新镜像: -- 更新 FastGPT 镜像tag: v4.12.1 +- 更新 FastGPT 镜像tag: v4.12.1-fix - 更新 FastGPT 商业版镜像tag: v4.12.1 - 更新 fastgpt-plugin 镜像 tag: v0.1.10 - mcp_server 无需更新 diff --git a/document/data/doc-last-modified.json b/document/data/doc-last-modified.json index 1a043f998..0a4cb0e1d 100644 --- a/document/data/doc-last-modified.json +++ b/document/data/doc-last-modified.json @@ -103,7 +103,7 @@ "document/content/docs/upgrading/4-11/4110.mdx": "2025-08-05T23:20:39+08:00", "document/content/docs/upgrading/4-11/4111.mdx": "2025-08-07T22:49:09+08:00", "document/content/docs/upgrading/4-12/4120.mdx": "2025-08-12T22:45:19+08:00", - "document/content/docs/upgrading/4-12/4121.mdx": "2025-08-15T17:56:49+08:00", + "document/content/docs/upgrading/4-12/4121.mdx": "2025-08-15T18:43:41+08:00", "document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00", "document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00", diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/Input/ChatInput.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/Input/ChatInput.tsx index e76183674..0b16db697 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/Input/ChatInput.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/Input/ChatInput.tsx @@ -256,7 +256,7 @@ const ChatInput = ({ gap={[0, 1]} > {/* 左侧自定义按钮组 */} - + {InputLeftComponent} diff --git a/projects/app/src/pageComponents/chat/ChatWindow/HomeChatWindow.tsx b/projects/app/src/pageComponents/chat/ChatWindow/HomeChatWindow.tsx index cc85621c7..e8a0f5fa1 100644 --- a/projects/app/src/pageComponents/chat/ChatWindow/HomeChatWindow.tsx +++ b/projects/app/src/pageComponents/chat/ChatWindow/HomeChatWindow.tsx @@ -101,14 +101,6 @@ const HomeChatWindow = ({ myApps }: Props) => { const [selectedModel, setSelectedModel] = useLocalStorageState('chat_home_model', { defaultValue: defaultModels.llm?.model }); - const selectedModelAvatar = useMemo(() => { - const modelData = getModelFromList(llmModelList, selectedModel || ''); - return modelData?.avatar || HUGGING_FACE_ICON; - }, [selectedModel, llmModelList]); - const selectedModelButtonLabel = useMemo(() => { - const modelData = availableModels.find((model) => model.value === selectedModel); - return modelData?.label || selectedModel; - }, [selectedModel, availableModels]); const availableTools = useMemo( () => chatSettings?.selectedTools || [], @@ -254,38 +246,33 @@ const HomeChatWindow = ({ myApps }: Props) => { <> {/* 模型选择 */} {availableModels.length > 0 && ( - - {isPc && } - {selectedModelButtonLabel} - - } - onChange={async (model) => { - setChatBoxData((state) => ({ - ...state, - app: { - ...state.app, - chatConfig: { - ...state.app.chatConfig, - fileSelectConfig: { - ...defaultFileSelectConfig, - canSelectImg: !!getWebLLMModel(model).vision + + { + setChatBoxData((state) => ({ + ...state, + app: { + ...state.app, + chatConfig: { + ...state.app.chatConfig, + fileSelectConfig: { + ...defaultFileSelectConfig, + canSelectImg: !!getWebLLMModel(model).vision + } } } - } - })); - setSelectedModel(model); - }} - /> + })); + setSelectedModel(model); + }} + /> + )} {/* 工具选择下拉框 */} @@ -361,9 +348,7 @@ const HomeChatWindow = ({ myApps }: Props) => { selectedToolIds, setSelectedToolIds, setChatBoxData, - isPc, - selectedModelAvatar, - selectedModelButtonLabel + isPc ] );