mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00
4.9.0 test (#3779)
* model config * feat: normalization embedding * remove log * version doc * version doc
This commit is contained in:
@@ -1,13 +1,21 @@
|
||||
---
|
||||
title: 'V4.8.21(进行中)'
|
||||
title: 'V4.8.21'
|
||||
description: 'FastGPT V4.8.21 更新说明'
|
||||
icon: 'upgrade'
|
||||
draft: false
|
||||
toc: true
|
||||
weight: 804
|
||||
weight: 803
|
||||
---
|
||||
|
||||
## 更新指南
|
||||
|
||||
### 1. 做好数据库备份
|
||||
|
||||
### 2. 更新镜像:
|
||||
|
||||
- 更新 fastgpt 镜像 tag: v4.8.21
|
||||
- 更新 fastgpt-pro 商业版镜像 tag: v4.8.21
|
||||
- Sandbox 镜像无需更新
|
||||
|
||||
## 完整更新内容
|
||||
|
||||
|
@@ -72,15 +72,15 @@ services:
|
||||
# fastgpt
|
||||
sandbox:
|
||||
container_name: sandbox
|
||||
image: ghcr.io/labring/fastgpt-sandbox:v4.8.20-fix2 # git
|
||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.20-fix2 # 阿里云
|
||||
image: ghcr.io/labring/fastgpt-sandbox:v4.8.21 # git
|
||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.21 # 阿里云
|
||||
networks:
|
||||
- fastgpt
|
||||
restart: always
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.8.20-fix2 # git
|
||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.20-fix2 # 阿里云
|
||||
image: ghcr.io/labring/fastgpt:v4.8.21 # git
|
||||
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.21 # 阿里云
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
|
@@ -8,11 +8,9 @@ import {
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
Switch,
|
||||
Textarea,
|
||||
useTheme
|
||||
} from '@chakra-ui/react';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import MySlider from '@/components/Slider';
|
||||
import MyModal from '@fastgpt/web/components/common/MyModal';
|
||||
import { DatasetSearchModeEnum } from '@fastgpt/global/core/dataset/constants';
|
||||
import { useTranslation } from 'next-i18next';
|
||||
@@ -110,12 +108,17 @@ const DatasetParamsModal = ({
|
||||
|
||||
useEffect(() => {
|
||||
if (datasetSearchUsingCfrForm) {
|
||||
!queryExtensionModel &&
|
||||
setValue('datasetSearchExtensionModel', chatModelSelectList[0]?.value);
|
||||
!queryExtensionModel && setValue('datasetSearchExtensionModel', defaultModels.llm?.model);
|
||||
} else {
|
||||
setValue('datasetSearchExtensionModel', '');
|
||||
}
|
||||
}, [chatModelSelectList, datasetSearchUsingCfrForm, queryExtensionModel, setValue]);
|
||||
}, [
|
||||
chatModelSelectList,
|
||||
datasetSearchUsingCfrForm,
|
||||
defaultModels.llm?.model,
|
||||
queryExtensionModel,
|
||||
setValue
|
||||
]);
|
||||
|
||||
// 保证只有 80 左右个刻度。
|
||||
const maxTokenStep = useMemo(() => {
|
||||
|
@@ -78,7 +78,7 @@ export const useInitApp = () => {
|
||||
if (sourceDomain) return sourceDomain;
|
||||
return document.referrer;
|
||||
})();
|
||||
console.log(formatSourceDomain, '-=-=');
|
||||
|
||||
if (formatSourceDomain && !sessionStorage.getItem('sourceDomain')) {
|
||||
sessionStorage.setItem('sourceDomain', formatSourceDomain);
|
||||
}
|
||||
|
Reference in New Issue
Block a user