perf: 优化 AI 设置
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user