reload buffer (#3665)

* reload buffer

* reload buffer

* tts selector
This commit is contained in:
Archer
2025-01-25 13:12:21 +08:00
committed by archer
parent 4ada33e7e6
commit c8e2e0283b
7 changed files with 38 additions and 17 deletions

View File

@@ -39,3 +39,13 @@ export const updateFastGPTConfigBuffer = async () => {
global.systemInitBufferId = res.createTime.getTime().toString();
};
export const reloadFastGPTConfigBuffer = async () => {
const res = await MongoSystemConfigs.findOne({
type: SystemConfigsTypeEnum.fastgpt
}).sort({
createTime: -1
});
if (!res) return;
global.systemInitBufferId = res.createTime.getTime().toString();
};