Skip to content

Commit 772a686

Browse files
authored
Merge branch 'main' into 1.2.x-bugfix-recommend-is-empty
2 parents 79bf31a + e0a1700 commit 772a686

File tree

235 files changed

+3797
-1629
lines changed

Some content is hidden

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

235 files changed

+3797
-1629
lines changed

.github/ISSUE_TEMPLATE/01_bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ body:
3232
label: 版本信息 / Version Information
3333
description: 您使用的是哪个版本?/ Which version are you using?
3434
options:
35-
- v1.1.0
35+
- v1.2.2
36+
- v1.1.2
3637
- v1.0.1
3738
- "其他 (请在下方说明) / Other (please specify below)"
3839
validations:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,25 @@ Please do not create a Pull Request without creating an issue first.
1010
1111
微小的变更(如错别字修复)不需要创建 Issue。
1212
Trivial changes like typos do not require a Github issue.
13+
14+
提交 PR 之前请务必先阅读我们的贡献指南。
15+
Please read our Contributing Guide(CONTRIBUTING.md) before submitting your Pull Request.
16+
17+
⚠️ 注意 / Note:
18+
19+
不要重复创建类似的 PR,当你发现需要调整一个 PR 的时候,优先选择编辑修改它,而不是关闭之后再创建一个。
20+
Do not create a Pull Request without creating an issue first.
1321
-->
1422

1523
## 🔗 相关问题 / Related Issue
1624

1725
<!-- 请先创建 Issue 讨论,然后在这里链接 -->
1826
<!-- Please create an issue for discussion first, then link it here -->
1927

20-
**Issue 链接 / Issue Link:** #
28+
**Issue 链接 / Issue Link:** <mark>#{$IssueNumber}</mark> 👈👈
29+
30+
<!-- 请修改 {$IssueNumber} 为真实的编号。 -->
31+
<!-- Please update {$IssueNumber} to an actual number. -->
2132

2233
- [ ] 我已经创建了相关 Issue 并进行了讨论 / I have created and discussed the related issue
2334
- [ ] 这是一个微小的修改(如错别字),不需要 Issue / This is a trivial change (like typo fix) that doesn't need an issue
@@ -30,6 +41,8 @@ Trivial changes like typos do not require a Github issue.
3041
- [ ] 📚 文档更新 / Documentation update
3142
- [ ] 🔧 重构 / Refactoring (no functional changes)
3243
- [ ] ⚡ 性能优化 / Performance improvement
44+
- [ ] 📦 依赖升级 / Dependency upgrade (update dependencies to newer versions)
45+
- [ ] 🚀 功能增强 / Feature enhancement (improve existing functionality without breaking changes)
3346
- [ ] 🧹 代码清理 / Code cleanup
3447

3548
## 📝 变更目的 / Purpose of the Change

CONTRIBUTING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@
3939
## 标签管理
4040

4141
- 每个标签的名字和发布分支的名字需要保持一致。例如:`fit-java-1.0.0``waterflow-2.1.1`
42+
- 纯数字版本的分支需要以 `v` 开头。例如:`v3.6.0`
4243
- 候选版本以特殊词组结尾,后面可以跟若干数字代表序号。例如:`fit-java-1.0.0-alpha1``waterflow-python-2.0.0-beta2`
4344
- 当标签被打出后,对应的发布分支应当删除,`Git-Flow` 模式下的 `*-main` 分支除外。
45+
- **注意:** 请不要使用自动生成的深色标签,如 `dependencies``python``java` 等,他们是平台自动生成用于机器人创建的 Issue 的。
46+
- 所有的 Issue 和 PR 都需要至少包含两种标签,一种是 `in: {$module}`,另一种是 `type: {$type}`
4447

4548
## 开发规范
4649

@@ -66,9 +69,10 @@ Licensed under the MIT License. See License.txt in the project root for license
6669
- 所有 `@param``@return` 的注释,最后都需要根据其类型添加引用,基本类型需要添加 `{@code }` 标记,其他需要添加 `{@link }` 标记。
6770
- 所有半角字符和全角字符之间需要增加一个空格,来使得整体排版规整,方便超长内容的换行。
6871

69-
### 插件sql
72+
### 插件 SQL
7073

7174
- 如果插件包含数据库相关操作,需要在插件的 `resources` 目录下创建 `sql` 目录,其中包含 `schema` 目录(存放创表相关语句)和 `data` 目录(存放预置数据相关的语句)。具体目录格式如下:
75+
7276
```text
7377
sql
7478
├── schema

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,15 @@ app-engine:
180180

181181
**启动命令**
182182

183+
在框架输出目录的 `bin` 目录下执行启动命令
184+
183185
```
184186
fit start
185187
```
186188
187189
> 这里直接使用了 `fit` 命令,该命令请参考 `fit-framework` 项目的[指导手册](https://github.com/ModelEngine-Group/fit-framework/blob/main/docs/framework/fit/java/quick-start-guide/03.%20%E4%BD%BF%E7%94%A8%E6%8F%92%E4%BB%B6%E7%9A%84%E7%83%AD%E6%8F%92%E6%8B%94%E8%83%BD%E5%8A%9B.md)。
188190
>
189-
> 当前,`app-platform` 使用了 `fit` 的 3.5.1 版本,因此,如果采用手动编译,需要在 `fit-framework` 仓库中切换到 `v3.5.1` 标签处进行编译构建操作。
191+
> 当前,`app-platform` 使用了 `fit` 的 3.5.3 版本,因此,如果采用手动编译,需要在 `fit-framework` 仓库中切换到 `v3.5.3` 标签处进行编译构建操作。
190192
191193
**调试命令**
192194
@@ -208,7 +210,7 @@ fit debug
208210
209211
**修改 ELSA 依赖地址**
210212
211-
进入目录 `app-engine\frontend` ,搜索 `package.json` 文件的 ELSA 依赖地址:
213+
进入目录 `app-platform/frontend` ,搜索 `package.json` 文件的 ELSA 依赖地址:
212214
213215
```
214216
"dependencies": {
@@ -220,12 +222,12 @@ fit debug
220222
221223
**修改代理文件**
222224
223-
修改 `AppPlatform/frontend` 目录下的 `proxy.config.json` 文件,可以修改需要访问的后端地址。如本地后端地址是 `http://127.0.0.1:8080` 。可以按照如下示例配置:
225+
修改 `app-platform/frontend` 目录下的 `proxy.config.json` 文件,可以修改需要访问的后端地址。如本地后端地址是 `http://127.0.0.1:8080` 。可以按照如下示例配置:
224226
225227
```json
226228
{
227229
"/api": {
228-
"target": "http://127.0.0.1:5520",
230+
"target": "http://127.0.0.1:8080",
229231
"secure": false,
230232
"changeOrigin": true,
231233
"pathRewrite": {
@@ -238,14 +240,16 @@ fit debug
238240
**依赖安装**
239241

240242
```
241-
cd app-engine/frontend/
243+
cd app-platform/frontend/
242244
npm install
243245
```
244246

245247
**打包构建**
246248

249+
`package.json` 中定义了多种打包脚本,这里以 `build:single` 为例:
250+
247251
```
248-
npm run build
252+
npm run build:single
249253
```
250254

251255
**启动命令**
@@ -260,15 +264,15 @@ npm run start
260264

261265
在对话中使用大模型功能,需要对模型进行配置,包括大模型的地址和鉴权信息。
262266
首先在首页的`应用市场`一栏中找到 `模型配置应用`,并点击该应用。点击右上角`创意灵感``开始配置`,如下图所示:
263-
![image_config_model](doc/images/readme/model_config_inspiration.png)
267+
![model_config_inspiration](docs/images/readme/model_config_inspiration.png)
264268
然后点击回答的 `添加模型` 按钮,输入模型名称、API Key 和模型地址,并点击确认。此时模型添加成功。
265269

266270
**应用创建**
267271

268272
在首页的`应用开发`一栏中点击`创建空白应用`。如下所示:
269-
![image_create_app](doc/images/readme/app_create.png)
273+
![app_create](docs/images/readme/app_create.png)
270274
输入所要创建的应用名称和简介,并点击 `创建`按钮,即可创建 AI 应用。接着在跳转后的应用配置页面上,在 `大模型` 一栏中选择自定义配置的模型。此时即可在对话框进行对话。如下所示:
271-
![image_app_chat](doc/images/readme/app_chat.png)
275+
![app_chat](docs/images/readme/app_chat.png)
272276

273277
## 文档
274278

app-builder/plugins/aipp-classify-question/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<dependency>
6767
<groupId>org.fitframework.plugin</groupId>
6868
<artifactId>fit-message-serializer-json-jackson</artifactId>
69-
<version>3.5.1</version>
69+
<version>${fit.version}</version>
7070
<scope>test</scope>
7171
</dependency>
7272
<dependency>

app-builder/plugins/aipp-custom-model-center/src/main/resources/sql/data/tr_t_model_import.sql

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>modelengine.fit.jade</groupId>
8+
<artifactId>app-builder-plugin-parent</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
</parent>
11+
12+
<groupId>modelengine.fit.jade.plugin</groupId>
13+
<artifactId>aipp-domain-division</artifactId>
14+
15+
<dependencies>
16+
<!-- FIT -->
17+
<dependency>
18+
<groupId>org.fitframework</groupId>
19+
<artifactId>fit-api</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.fitframework.service</groupId>
23+
<artifactId>fit-http-classic</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>org.fitframework</groupId>
27+
<artifactId>fit-util</artifactId>
28+
</dependency>
29+
30+
<!-- Services -->
31+
<dependency>
32+
<groupId>modelengine.jade.service</groupId>
33+
<artifactId>aipp-domain-division-service</artifactId>
34+
<version>1.0.0-SNAPSHOT</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>modelengine.fit.jade.service</groupId>
38+
<artifactId>authentication-service</artifactId>
39+
</dependency>
40+
<dependency>
41+
<groupId>modelengine.fit.jade.service</groupId>
42+
<artifactId>common-service</artifactId>
43+
<version>1.0.0-SNAPSHOT</version>
44+
</dependency>
45+
46+
<!-- Third-party -->
47+
<dependency>
48+
<groupId>org.projectlombok</groupId>
49+
<artifactId>lombok</artifactId>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.fitframework.integration</groupId>
53+
<artifactId>fit-mybatis</artifactId>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.postgresql</groupId>
57+
<artifactId>postgresql</artifactId>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.mybatis</groupId>
61+
<artifactId>mybatis</artifactId>
62+
</dependency>
63+
<dependency>
64+
<groupId>com.alibaba</groupId>
65+
<artifactId>druid</artifactId>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.fitframework.integration</groupId>
69+
<artifactId>fit-druid</artifactId>
70+
</dependency>
71+
<dependency>
72+
<groupId>com.fasterxml.jackson.core</groupId>
73+
<artifactId>jackson-databind</artifactId>
74+
</dependency>
75+
76+
<!-- Test -->
77+
<dependency>
78+
<groupId>org.junit.jupiter</groupId>
79+
<artifactId>junit-jupiter</artifactId>
80+
<scope>test</scope>
81+
</dependency>
82+
<dependency>
83+
<groupId>org.mockito</groupId>
84+
<artifactId>mockito-inline</artifactId>
85+
<scope>test</scope>
86+
</dependency>
87+
<dependency>
88+
<groupId>org.assertj</groupId>
89+
<artifactId>assertj-core</artifactId>
90+
<scope>test</scope>
91+
</dependency>
92+
<dependency>
93+
<groupId>org.fitframework</groupId>
94+
<artifactId>fit-test-framework</artifactId>
95+
<scope>test</scope>
96+
</dependency>
97+
<dependency>
98+
<groupId>com.h2database</groupId>
99+
<artifactId>h2</artifactId>
100+
<scope>test</scope>
101+
</dependency>
102+
</dependencies>
103+
104+
<build>
105+
<plugins>
106+
<plugin>
107+
<groupId>org.fitframework</groupId>
108+
<artifactId>fit-build-maven-plugin</artifactId>
109+
<version>${fit.version}</version>
110+
<configuration>
111+
<category>user</category>
112+
<level>3</level>
113+
</configuration>
114+
<executions>
115+
<execution>
116+
<id>build-plugin</id>
117+
<goals>
118+
<goal>build-plugin</goal>
119+
</goals>
120+
</execution>
121+
<execution>
122+
<id>package-plugin</id>
123+
<goals>
124+
<goal>package-plugin</goal>
125+
</goals>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-antrun-plugin</artifactId>
132+
<version>${maven.antrun.version}</version>
133+
<executions>
134+
<execution>
135+
<phase>install</phase>
136+
<configuration>
137+
<target>
138+
<copy file="${project.build.directory}/${project.build.finalName}.jar"
139+
todir="../../../build/plugins"/>
140+
</target>
141+
</configuration>
142+
<goals>
143+
<goal>run</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
</plugin>
148+
</plugins>
149+
</build>
150+
</project>

0 commit comments

Comments
 (0)