diff --git a/docSite/content/docs/development/configuration.md b/docSite/content/docs/development/configuration.md index 02421b255..7ffc7c585 100644 --- a/docSite/content/docs/development/configuration.md +++ b/docSite/content/docs/development/configuration.md @@ -134,6 +134,7 @@ weight: 708 "maxToken": 3000 } ], + "ReRankModels": [], // 重排模型,暂时填空数组 "AudioSpeechModels": [ { "model": "tts-1", diff --git a/docSite/content/docs/development/upgrading/465.md b/docSite/content/docs/development/upgrading/465.md index cefeb912a..e43066d9e 100644 --- a/docSite/content/docs/development/upgrading/465.md +++ b/docSite/content/docs/development/upgrading/465.md @@ -13,10 +13,12 @@ weight: 831 [点击查看最新的配置文件](/docs/development/configuration/) -主要是修改模型的`functionCall`字段,改成`toolChoice`即可。设置为`true`的模型,会默认走 openai 的 tools 模式;未设置或设置为`false`的,会走提示词生成模式。 +1. 主要是修改模型的`functionCall`字段,改成`toolChoice`即可。设置为`true`的模型,会默认走 openai 的 tools 模式;未设置或设置为`false`的,会走提示词生成模式。 问题补全模型与内容提取模型使用同一组配置。 +2. 增加 `"ReRankModels": []` + ## V4.6.5 功能介绍 1. 新增 - [问题补全模块](/docs/workflow/modules/coreferenceresolution/) diff --git a/projects/app/src/pages/api/system/getInitData.ts b/projects/app/src/pages/api/system/getInitData.ts index f08da8e05..1363a9d4c 100644 --- a/projects/app/src/pages/api/system/getInitData.ts +++ b/projects/app/src/pages/api/system/getInitData.ts @@ -85,14 +85,14 @@ export async function getInitConfig() { }; global.systemEnv = config.SystemParams; - global.chatModels = config.ChatModels; - global.qaModels = config.QAModels; - global.cqModels = config.CQModels; - global.extractModels = config.ExtractModels; - global.qgModels = config.QGModels; - global.vectorModels = config.VectorModels; - global.reRankModels = config.ReRankModels; - global.audioSpeechModels = config.AudioSpeechModels; + global.chatModels = config.ChatModels || []; + global.qaModels = config.QAModels || []; + global.cqModels = config.CQModels || []; + global.extractModels = config.ExtractModels || []; + global.qgModels = config.QGModels || []; + global.vectorModels = config.VectorModels || []; + global.reRankModels = config.ReRankModels || []; + global.audioSpeechModels = config.AudioSpeechModels || []; global.whisperModel = config.WhisperModel; global.priceMd = '';