perf: 优化 AI 设置

This commit is contained in:
kuaifan
2025-07-26 15:04:28 +08:00
parent 5139947643
commit 9bd6fcefd3
6 changed files with 472 additions and 381 deletions

View File

@@ -3,8 +3,8 @@
namespace App\Tasks;
use App\Models\WebSocketDialogSession;
use App\Module\AI;
use App\Module\Base;
use App\Module\Extranet;
/**
* 通过AI接口更新对话标题
@@ -32,7 +32,7 @@ class UpdateSessionTitleViaAiTask extends AbstractTask
return;
}
$result = Extranet::openAIGenerateTitle($this->msgText);
$result = AI::generateTitle($this->msgText);
if (Base::isError($result)) {
return;
}