perf: 优化 AI 设置

This commit is contained in:
kuaifan
2025-07-26 12:01:37 +08:00
parent 9969c3a7ac
commit 01ff10385a
8 changed files with 241 additions and 42 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ class UserBot extends AbstractModel
if ($match[1] === "ai-") {
$aibotSetting = Base::setting('aibotSetting');
$aibotModel = $aibotSetting[$match[1] . '_model'];
$aibotModels = Setting::AIModels2Array($aibotSetting[$match[1] . '_models']);
$aibotModels = Setting::AIBotModels2Array($aibotSetting[$match[1] . '_models']);
if ($aibotModels) {
$menus = array_merge(
[