Skip to content

Commit 3f9b0fa

Browse files
c121914yuctrlz526newfish-cmykxqvvuFinleyGe
authored
V4.12.3 features (#5595)
* refactor: remove ModelProviderIdType and update related types (#5549) * perf: model provider * fix eval create split (#5570) * git rebase --continuedoc * add more variable types (#5540) * variable types * password * time picker * internal var * file * fix-test * time select default value & range * password & type render * fix * fix build * fix * move method * split date select * icon * perf: variable code * prompt editor add markdown plugin (#5556) * editor markdown * fix build * pnpm lock * add props * update code * fix list * editor ui * fix variable reset (#5586) * perf: variables type code * customize lexical indent (#5588) * perf: multiple selector * perf: tab plugin * doc * refactor: update workflow constants to use ToolTypeEnum (#5491) * refactor: replace FlowNodeTemplateTypeEnum with string literals in workflow templates * perf: tool type --------- Co-authored-by: archer <545436317@qq.com> * update doc * fix: make table's row more natural while dragging it (#5596) * feat: add APIGetTemplate function and refactor template fetching logic (#5498) * feat: add APIGetTemplate function and refactor template fetching logic * chore: adjust the code * chore: update sdk --------- Co-authored-by: FinleyGe <m13203533462@163.com> * perf init system * doc * remove log * remove i18n * perf: variables render --------- Co-authored-by: Ctrlz <143257420+ctrlz526@users.noreply.github.com> Co-authored-by: heheer <heheer@sealos.io> Co-authored-by: 伍闲犬 <whoeverimf5@gmail.com> Co-authored-by: FinleyGe <m13203533462@163.com>
1 parent c747fc0 commit 3f9b0fa

File tree

166 files changed

+3406
-11603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+3406
-11603
lines changed

document/content/docs/upgrading/4-12/4120.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'V4.12.0(包含升级脚本)'
3-
description: 'FastGPT V4.12.0 更新说明, 发布于 2025-8-11'
3+
description: 'FastGPT V4.12.0 更新说明, 发布于 2025-8-11'
44
---
55

66
## 更新指南

document/content/docs/upgrading/4-12/4121.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'V4.12.1(包含升级脚本)'
3-
description: 'FastGPT V4.12.1 更新说明, 发布于 2025-8-18'
3+
description: 'FastGPT V4.12.1 更新说明, 发布于 2025-8-18'
44
---
55

66
## 更新指南

document/content/docs/upgrading/4-12/4122.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'V4.12.2'
3-
description: 'FastGPT V4.12.2 更新说明, 发布于 2025-8-26'
3+
description: 'FastGPT V4.12.2 更新说明, 发布于 2025-8-26'
44
---
55

66
## 更新指南

document/content/docs/upgrading/4-12/4123.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,27 @@ title: 'V4.12.3(进行中)'
33
description: 'FastGPT V4.12.3 更新说明'
44
---
55

6-
76
## 🚀 新增内容
87

8+
1. 提示词编辑器支持列表、tab 渲染等部分富文本交互。
9+
2. 应用增加更多全局变量:密码、多选、内部变量(在站内对话不会显示)。
910

1011
## ⚙️ 优化
1112

1213
1. 纠正 RRF 权重合并算法,使用标准 RRF 权重公式。
14+
2. 多选组件支持动态宽度计算,适配可见 tag。
15+
3. 变量更新组件渲染优化,与全局变量渲染保持一致性。
1316

1417
## 🐛 修复
1518

1619
1. 单团队模式下,如果用户离开,则无法重新进入团队。
1720
2. 工作流文件上传默认打开,但输入侧未添加文件输出。
1821
3. 连续用户选择,分支无法正常运行。
1922
4. 工作流,变量更新,数组选择器异常。
23+
5. 应用评测,评测内容仅获取了首个输出文本,未获取所有输出文本。
2024

21-
## 🔨 工具更新
25+
## 🔨 插件更新
26+
27+
1. 系统工具类型迁移至 plugin。
28+
2. 将模型提供商配置移动到 plugin,实现热更新。
29+
3. 将应用模板移动至 plugin。

document/data/doc-last-modified.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
"document/content/docs/upgrading/4-10/4101.mdx": "2025-08-02T19:38:37+08:00",
103103
"document/content/docs/upgrading/4-11/4110.mdx": "2025-08-05T23:20:39+08:00",
104104
"document/content/docs/upgrading/4-11/4111.mdx": "2025-08-07T22:49:09+08:00",
105-
"document/content/docs/upgrading/4-12/4120.mdx": "2025-08-12T22:45:19+08:00",
106-
"document/content/docs/upgrading/4-12/4121.mdx": "2025-08-15T22:53:06+08:00",
107-
"document/content/docs/upgrading/4-12/4122.mdx": "2025-09-04T21:37:57+08:00",
108-
"document/content/docs/upgrading/4-12/4123.mdx": "2025-09-04T21:37:57+08:00",
105+
"document/content/docs/upgrading/4-12/4120.mdx": "2025-09-04T22:59:41+08:00",
106+
"document/content/docs/upgrading/4-12/4121.mdx": "2025-09-04T22:59:41+08:00",
107+
"document/content/docs/upgrading/4-12/4122.mdx": "2025-09-04T22:59:41+08:00",
108+
"document/content/docs/upgrading/4-12/4123.mdx": "2025-09-05T17:31:22+08:00",
109109
"document/content/docs/upgrading/4-8/40.mdx": "2025-08-02T19:38:37+08:00",
110110
"document/content/docs/upgrading/4-8/41.mdx": "2025-08-02T19:38:37+08:00",
111111
"document/content/docs/upgrading/4-8/42.mdx": "2025-08-02T19:38:37+08:00",

document/source.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export default defineConfig({
1919
mdxOptions: {
2020
// MDX options
2121
}
22-
});
22+
});

packages/global/common/i18n/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { I18nStringType, localeType } from './type';
22

3-
export const parseI18nString = (str: I18nStringType | string = '', lang: localeType = 'en') => {
3+
export const parseI18nString = (str: I18nStringType | string = '', lang = 'en') => {
44
if (!str || typeof str === 'string') return str;
5-
return str[lang] ?? str['en'];
5+
return str[lang as localeType] ?? str['en'];
66
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const isSecretValue = (val: any) => {
2+
return typeof val === 'object' && val !== null && !!val.secret;
3+
};

packages/global/core/ai/model.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ModelTypeEnum } from './model';
2-
import type { ModelProviderIdType } from './provider';
32

43
type PriceType = {
54
charsPointsPrice?: number; // 1k chars=n points; 60s=n points;
@@ -9,7 +8,7 @@ type PriceType = {
98
outputPrice?: number; // 1k tokens=n points
109
};
1110
type BaseModelItemType = {
12-
provider: ModelProviderIdType;
11+
provider: string;
1312
model: string;
1413
name: string;
1514
avatar?: string; // model icon, from provider

packages/global/core/ai/model.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { i18nT } from '../../../web/i18n/utils';
22
import type { LLMModelItemType, STTModelType, EmbeddingModelItemType } from './model.d';
3-
import { getModelProvider, type ModelProviderIdType } from './provider';
43

54
export enum ModelTypeEnum {
65
llm = 'llm',
@@ -54,29 +53,6 @@ export const defaultSTTModels: STTModelType[] = [
5453
}
5554
];
5655

57-
export const getModelFromList = (
58-
modelList: { provider: ModelProviderIdType; name: string; model: string }[],
59-
model: string,
60-
language: string
61-
):
62-
| {
63-
avatar: string;
64-
provider: ModelProviderIdType;
65-
name: string;
66-
model: string;
67-
}
68-
| undefined => {
69-
const modelData = modelList.find((item) => item.model === model) ?? modelList[0];
70-
if (!modelData) {
71-
return;
72-
}
73-
const provider = getModelProvider(modelData.provider, language);
74-
return {
75-
...modelData,
76-
avatar: provider.avatar
77-
};
78-
};
79-
8056
export const modelTypeList = [
8157
{ label: i18nT('common:model.type.chat'), value: ModelTypeEnum.llm },
8258
{ label: i18nT('common:model.type.embedding'), value: ModelTypeEnum.embedding },

0 commit comments

Comments
 (0)