Skip to content

Commit

Permalink
fix: init (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored Dec 26, 2023
1 parent 99e8ba2 commit 86286ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions docSite/content/docs/development/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ weight: 708
"maxToken": 3000
}
],
"ReRankModels": [], // 重排模型,暂时填空数组
"AudioSpeechModels": [
{
"model": "tts-1",
Expand Down
4 changes: 3 additions & 1 deletion docSite/content/docs/development/upgrading/465.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
16 changes: 8 additions & 8 deletions projects/app/src/pages/api/system/getInitData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 86286ef

Please sign in to comment.