fix: init (#653)

This commit is contained in:
Archer
2023-12-26 10:10:36 +08:00
committed by GitHub
parent 99e8ba2256
commit 86286efb54
3 changed files with 12 additions and 9 deletions

View File

@@ -134,6 +134,7 @@ weight: 708
"maxToken": 3000
}
],
"ReRankModels": [], // 重排模型,暂时填空数组
"AudioSpeechModels": [
{
"model": "tts-1",

View File

@@ -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/)

View File

@@ -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 = '';