Skip to content

Commit 32d1887

Browse files
authored
Merge pull request #6 from TuringOpsSH/release/0.2.6
Release/0.2.6
2 parents e1a576e + 9e549b3 commit 32d1887

File tree

542 files changed

+34774
-46960
lines changed

Some content is hidden

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

542 files changed

+34774
-46960
lines changed

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,64 @@ Here's the English version of the changelog with professional formatting:
88

99
---
1010

11+
## [0.2.6] - 2025-09-09
12+
13+
### New Features
14+
15+
**Official Documentation Launch**
16+
* [x] Added User Center documentation
17+
* Introduces product features and usage methods
18+
* Company and team overview
19+
* API specifications
20+
* Technical blog
21+
22+
**User Center Expansion & Refactor**
23+
* [x] Refactored User Center interface, added a new Configuration Management module
24+
* View API-key and expiration time, support extending expiration to a specified date
25+
* View roles assigned to the current user
26+
* Supports modifying the session layout mode for AI Workbench - XiaoYi Assistant
27+
* Supports modifying the available model list for AI Workbench - XiaoYi Assistant
28+
* Supports modifying the Auto-Build switch for AI Resource Library
29+
* Supports modifying Contact configuration -- Allow being found by strangers
30+
* Supports viewing the current version and checking for updates
31+
* [x] Added Platform Configuration page, supports modifying platform-level parameters
32+
* Supports configuring the default model for XiaoYi Assistant
33+
* Configure vectorization model address
34+
* Configure re-ranking model address
35+
* Configure speech recognition model address
36+
* Configure WeChat login parameters
37+
* Configure search engine parameters
38+
* Configure mail server parameters
39+
* Configure SMS service parameters
40+
* Configure WPS service parameters (Enable to use WPS-related features for collaborative document editing)
41+
* Supports custom branding (Logo modification, browser tab title, etc.)
42+
43+
**AI Workbench**
44+
* [x] File splitting now supports a list mode.
45+
46+
**Architectural Changes**
47+
* [x] Changed routing mode to history mode, removing the `#` from URLs
48+
* [x] Introduced ESLint for unified code style enforcement
49+
* [x] Introduced Pinia for state management
50+
51+
### Fixes & Optimizations
52+
53+
**AI Workbench**
54+
* [x] Fixed abnormal display of answers after manually interrupting XiaoYi Assistant
55+
* [x] Fixed message copy functionality
56+
* [x] Fixed input box enter key event handling
57+
* [x] Fixed session parameters automatically closing
58+
* [x] Fixed abnormal menu highlighting
59+
60+
**Reports**
61+
* [x] Optimized report interface and loading performance
62+
63+
**AI App Factory**
64+
* [x] Limited RAG length to prevent overflow issues
65+
* [x] Fixed trace log overwrite anomaly
66+
67+
---
68+
1169
## [0.2.5] - 2025-08-24
1270

1371
### Fixes

CHANGELOG_CN.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,74 @@
33
本项目所有显著变更将记录在此文件中。
44
格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/)
55

6+
## [0.2.6] - 2025-09-09
7+
8+
### 新特性
9+
10+
**官方文档上线**
11+
12+
- [x] 新增用户中心使用文档
13+
- 介绍产品功能和使用方法
14+
- 公司团队概况
15+
- API说明
16+
- 技术博客
17+
18+
**用户中心扩展与重构**
19+
20+
- [x] 重构用户中心界面,新增配置管理模块
21+
- 查看API-key 与失效时间,支持延长失效时间至指定日期
22+
- 查看当前用户拥有角色
23+
- 支持修改AI工作台-小亦助手的会话布局模式
24+
- 支持修改AI工作台-小亦助手的可行模型清单
25+
- 支持修改AI资源库-自动构建开关
26+
- 支持修改通讯录配置--允许被陌生人搜索
27+
- 支持查看当前版本与检查更新
28+
29+
- [x] 新增平台配值页面,支持修改平台级参数
30+
- 支持配置小亦助手默认模型
31+
- 配置向量化模型地址
32+
- 配置重排序模型地址
33+
- 配置语音识别模型地址
34+
- 配置微信登录参数
35+
- 配置搜索引擎参数
36+
- 配置邮件服务器参数
37+
- 配置短信服务参数
38+
- 配置WPS服务参数(启动后可使用WPS相关功能来协同编辑文档)
39+
- 支持自主品牌信息定制(logo修改、标签页名称等)
40+
41+
**AI工作台**
42+
43+
- [x] 文件切分支持列表模式
44+
45+
46+
47+
48+
**架构级修改**
49+
- [x] 修改路由模式为history模式,去掉url中的#号
50+
- [x] 引入eslint,统一代码规范
51+
- [x] 引入pinia进行状态管理
52+
53+
54+
### 修复优化
55+
56+
**AI工作台**
57+
58+
- [x] 修复小亦助手手动中断后显示回答异常
59+
- [x] 修复消息复制异常
60+
- [x] 修复输入框回车事件
61+
- [x] 修复会话参数自动关闭
62+
- [x] 修复菜单高亮异常
63+
64+
**报表**
65+
- [x] 优化报表界面与加载
66+
67+
**AI应用工厂**
68+
69+
- [x] 限制rag长度,防止长度溢出
70+
- [x] 修复 trace log 覆盖异常
71+
72+
---
73+
674

775
## [0.2.5] - 2025-08-24
876
### 修复

admin/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.log
2+
**/__pycache__
3+
app/data/*
4+
!app/data/.gitkeep
5+
tmp/*
6+
!tmp/.gitkeep
7+
.idea
8+
venv
9+
app/logs/*
10+
.idea/*
11+
celerybeat-schedule.dat
12+
celerybeat-schedule.bak
13+
celerybeat-schedule.dir
14+
.vscode
15+
app/libs/*

admin/app/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
from app.views.management_center.management_process import *
44
from app.views.user_center.role_process import *
55
from app.views.user_center.user_notice_view import *
6+
from app.views.user_center.system_notice import *
67

78
# # 配置中心
8-
from app.views.configure_center.admin import *
9+
from app.views.configure_center.system_config import *
10+
from app.views.configure_center.user_config import *
911
from app.views.configure_center.model_manager import *
1012
#
1113
# # 工作台

admin/app/app.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
from flask_principal import Principal
1515
from flask_sqlalchemy import SQLAlchemy
1616
import socket
17-
from alibabacloud_dysmsapi20170525.client import Client as Dysmsapi20170525Client
18-
from alibabacloud_tea_openapi import models as open_api_models
1917
from urllib.parse import quote_plus
2018

2119
app = Flask(__name__)
@@ -131,13 +129,3 @@
131129
handler.setFormatter(formatter)
132130
app.logger.addHandler(handler)
133131
app.logger.setLevel(app.config['LOG_LEVEL'])
134-
if app.config['ALIBABA_CLOUD_ACCESS_KEY_ID']:
135-
aliyun_config = open_api_models.Config(
136-
access_key_id=app.config['ALIBABA_CLOUD_ACCESS_KEY_ID'],
137-
access_key_secret=app.config['ALIBABA_CLOUD_ACCESS_KEY_SECRET'],
138-
endpoint=app.config['ALIBABA_CLOUD_ENDPOINT']
139-
)
140-
aliyun_client = Dysmsapi20170525Client(aliyun_config)
141-
else:
142-
aliyun_client = None
143-

admin/app/config/config_private.py

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
app.config['LOG_LEVEL'] = "INFO"
1515
app.config['LOG_MAX_BYTES'] = 10*1024*1024
1616
app.config['LOG_BACKUP_COUNT'] = 10
17-
app.config['SECRET_KEY'] = '1e5df11529'
17+
app.config['SECRET_KEY'] = '146c827-a8ac-4a28-8fd5-c13e5df11529'
1818
app.config['download_cool_time'] = 7200
1919
app.config['download_max_count'] = 100
2020

@@ -47,44 +47,3 @@
4747
app.config['result_serializer'] = 'json'
4848
app.config['worker_concurrency'] = 12
4949
app.config["task_timeout"] = 3600
50-
51-
# rag 配置
52-
app.config["EMBEDDING_ENDPOINT"] = "https://api.siliconflow.cn/v1/embeddings"
53-
app.config["EMBEDDING_MODEL"] = "BAAI/bge-m3"
54-
app.config["EMBEDDING_KEY"] = ""
55-
app.config["RERANK_ENDPOINT"] = "https://api.siliconflow.cn/v1/rerank"
56-
app.config["RERANK_MODEL"] = "BAAI/bge-reranker-v2-m3"
57-
app.config["RERANK_KEY"] = ""
58-
app.config["search_engine_endpoint"] = "https://google.serper.dev/search"
59-
app.config["search_engine_key"] = ""
60-
61-
# 企微配置
62-
app.config['sToken'] = ""
63-
app.config['sEncodingAESKey'] = ""
64-
app.config['sCorpID'] = ""
65-
app.config['corpsecret'] = ""
66-
app.config['agent_id'] = ""
67-
68-
# 邮箱配置
69-
app.config["admin_email"] = "support@turingops.com.cn"
70-
app.config["smtp_server"] = "smtphz.qiye.163.com"
71-
app.config["smtp_port"] = 465
72-
app.config["smtp_user"] = "support@turingops.com.cn"
73-
app.config["smtp_password"] = ""
74-
app.config["notice_email"] = "support@turingops.com.cn"
75-
76-
# 微信配置
77-
app.config['WX_APP_ID'] = ""
78-
app.config["WX_APP_SECRET"] = ""
79-
80-
# 短信配置
81-
app.config["ALIBABA_CLOUD_ACCESS_KEY_ID"] = ""
82-
app.config["ALIBABA_CLOUD_ACCESS_KEY_SECRET"] = ""
83-
app.config["ALIBABA_CLOUD_ENDPOINT"] = ""
84-
app.config["sign_name"] = ""
85-
86-
# 讯飞配置
87-
app.config['XF_API'] = ""
88-
app.config["XF_APP_ID"] = ""
89-
app.config["XF_API_KEY"] = ""
90-
app.config["XF_API_SECRET"] = ""

admin/app/models/configure_center/llm_kernel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def to_dict(self):
5353
"llm_status": self.llm_status,
5454
"llm_source": self.llm_source,
5555
"llm_is_public": self.llm_is_public,
56+
"llm_icon": self.llm_icon if self.llm_icon else "",
5657
"create_time": self.create_time.strftime('%Y-%m-%d %H:%M:%S'),
5758
"update_time": self.update_time.strftime('%Y-%m-%d %H:%M:%S'),
5859
"frequency_penalty": self.frequency_penalty,

admin/app/models/configure_center/system_config.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@ class SystemConfig(db.Model):
88
"""
99
__tablename__ = 'system_config_info'
1010
id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='参数id')
11-
module_name = db.Column(db.String(255), nullable=False, comment='模块名称')
12-
component_name = db.Column(db.String(255), nullable=False, comment='组件名称')
13-
config_name = db.Column(db.String(255), nullable=False, comment='配置名称')
11+
config_key = db.Column(db.String(255), nullable=False, comment='配置名称')
1412
config_desc = db.Column(db.String(255), nullable=False, comment='配置描述')
15-
config_default_value = db.Column(db.String(1024), nullable=False, comment='配置默认值')
16-
config_value = db.Column(db.String(1024), nullable=False, comment='配置值')
13+
config_default_value = db.Column(db.JSON, nullable=False, comment='配置默认值')
14+
config_value = db.Column(db.JSON, nullable=False, comment='配置值')
1715
create_time = db.Column(db.TIMESTAMP, server_default=func.now(), comment='配置创建时间')
1816
update_time = db.Column(db.TIMESTAMP, server_default=func.now(), comment='配置更新时间')
1917
config_status = db.Column(db.Integer, nullable=False, comment='配置状态')
2018

2119
def to_dict(self):
2220
return {
2321
"id": self.id,
24-
"module_name": self.module_name,
25-
"component_name": self.component_name,
26-
"config_name": self.config_name,
22+
"config_key": self.config_key,
2723
"config_desc": self.config_desc,
2824
"config_default_value": self.config_default_value,
2925
"config_value": self.config_value,

admin/app/models/configure_center/user_config.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ class UserConfig(db.Model):
88
__tablename__ = 'user_config_info'
99
id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='自增id')
1010
user_id = db.Column(db.Integer, nullable=False, comment='用户id')
11-
open_query_agent = db.Column(db.Integer, default=True, comment='是否启用query-agent')
12-
resource_shortcut_types = db.Column(db.JSON, default=[], comment='资源快捷方式类型')
13-
resource_table_show_fields = db.Column(db.JSON, default=[], comment='资源表格展示字段')
14-
resource_auto_rag = db.Column(db.Boolean, default=True, comment='资源自动rag')
15-
search_engine_language_type = db.Column(db.JSON, default={}, comment='搜索引擎语言类型')
16-
search_engine_resource_type = db.Column(db.String(255), default="search", comment='搜索引擎搜索类型')
11+
config_key = db.Column(db.String(255), nullable=False, comment='配置键名')
12+
config_value = db.Column(db.JSON, nullable=False, comment='配置值(JSON格式)')
1713
config_status = db.Column(db.String(255), nullable=False, comment='配置状态')
1814
create_time = db.Column(db.TIMESTAMP, server_default=func.now(), comment='配置创建时间')
1915
update_time = db.Column(db.TIMESTAMP, server_default=func.now(), comment='配置更新时间')
@@ -23,12 +19,8 @@ def to_dict(self):
2319
"id": self.id,
2420
"user_id": self.user_id,
2521
"config_status": self.config_status,
26-
"open_query_agent": self.open_query_agent,
27-
"resource_table_show_fields": self.resource_table_show_fields,
28-
"resource_auto_rag": self.resource_auto_rag,
29-
"resource_shortcut_types": self.resource_shortcut_types,
30-
"search_engine_language_type": self.search_engine_language_type,
31-
"search_engine_resource_type": self.search_engine_resource_type,
22+
"config_key": self.config_key,
23+
"config_value": self.config_value,
3224
"create_time": self.create_time.strftime('%Y-%m-%d %H:%M:%S'),
3325
"update_time": self.update_time.strftime('%Y-%m-%d %H:%M:%S'),
3426
}

0 commit comments

Comments
 (0)