Skip to content

Commit aef7bd5

Browse files
committed
feat: release 10.5.0
1 parent 8e614f2 commit aef7bd5

File tree

71 files changed

+1877
-250
lines changed

Some content is hidden

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

71 files changed

+1877
-250
lines changed

app/Constant/AppConstant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class AppConstant
66
{
77
const APP = 'blog';
88
const APP_NAME = 'ModStartBlog';
9-
const VERSION = '10.4.0';
9+
const VERSION = '10.5.0';
1010
}
1111

module/AigcBase/Admin/Controller/AigcKeyPoolController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ public function test()
150150
$ret = $chatProvider->chat('test', '你是什么模型,使用最简短的回答');
151151
break;
152152
}
153+
if (!empty($ret['data']['isError'])) {
154+
return Response::generateError('模型测试失败');
155+
}
153156
if (Response::isSuccess($ret)) {
154157
return Response::generateSuccess('测试成功');
155158
}

module/AigcBase/Docs/release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.4.4 AI平台对接模型测试失效问题
2+
3+
- 修复:AI平台对接模型测试失效问题
4+
5+
---
6+
17
## 1.4.3 无需选择模型的驱动默认使用default
28

39
- 优化:无需选择模型的驱动默认使用default

module/AigcBase/Provider/AbstractAigcChatProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use ModStart\Core\Input\Response;
99
use ModStart\Core\Util\HtmlUtil;
1010
use Module\AigcBase\Type\AigcProviderType;
11-
use Module\AigcBase\Util\AigcKeyPoolUtil;
1211
use Module\Vendor\Markdown\MarkdownUtil;
1312

1413
abstract class AbstractAigcChatProvider extends AbstractAigcProvider
@@ -60,6 +59,7 @@ protected function chatResponse($sessionId, $content, $option)
6059
protected function chatResponseError($sessionId, $option)
6160
{
6261
return Response::generateSuccessData([
62+
'isError' => true,
6363
'msg' => [
6464
'type' => 'text',
6565
'content' => '机器人太忙啦,请稍后再试'

module/AigcBase/config.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"laravel9"
77
],
88
"types": [
9-
"PC",
10-
"Mobile"
9+
"PC"
10+
],
11+
"tags": [
12+
"AI"
1113
],
12-
"tags": [],
1314
"require": [
1415
"Vendor:>=4.1.0"
1516
],
@@ -31,10 +32,10 @@
3132
"AigcChatXunfei",
3233
"AigcChatZhipuAi"
3334
],
34-
"version": "1.4.3",
35+
"version": "1.4.4",
3536
"modstartVersion": ">=4.1.0",
3637
"author": "ModStart",
3738
"description": "提供AI基础框架包,支持各种模型接入",
3839
"providers": [],
39-
"config": {}
40-
}
40+
"config": []
41+
}

module/CensorImageTecmz/Core/CensorImageTecmzProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function name()
1717

1818
public function title()
1919
{
20-
return '图片智能审核';
20+
return '魔众图片智能审核';
2121
}
2222

2323
public function verify($content, $param = [])

module/CensorImageTecmz/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CensorImageTecmz",
3-
"title": "图片智能审核",
3+
"title": "魔众图片智能审核",
44
"env": [
55
"laravel5",
66
"laravel9"

module/CensorTextTecmz/Core/CensorTextTecmzProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function name()
1717

1818
public function title()
1919
{
20-
return '文本审核';
20+
return '魔众文本智能审核';
2121
}
2222

2323
public function verify($content, $param = [])

module/CensorTextTecmz/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CensorTextTecmz",
3-
"title": "文本智能审核",
3+
"title": "魔众文本智能审核",
44
"env": [
55
"laravel5",
66
"laravel9"

module/EmailSmtp/Admin/Controller/ConfigController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use ModStart\Form\Form;
1010
use ModStart\Widget\Box;
1111
use ModStart\Widget\ButtonDialogRequest;
12-
use ModStart\Widget\TextDialogRequest;
1312
use Module\EmailSmtp\Provider\SmtpMailSenderProvider;
1413

1514
class ConfigController extends Controller
@@ -26,6 +25,9 @@ public function setting(AdminConfigBuilder $builder)
2625
$builder->switch('systemEmailSmtpSsl', 'SMTP是否为SSL');
2726
$builder->text('systemEmailSmtpUser', 'SMTP用户');
2827
$builder->text('systemEmailSmtpPassword', 'SMTP密码');
28+
$builder->text('EmailSmtp_FromName', '邮件来源名称');
29+
$builder->text('EmailSmtp_FromEmail', '邮件来源邮箱')
30+
->help('如果不填写则使用SMTP用户作为来源邮箱');
2931
$builder->formClass('wide');
3032
$builder->hookFormWrap(function (Form $form) {
3133
return Box::make($form, 'SMTP邮箱')

0 commit comments

Comments
 (0)