From c078a5070794ae2b77f4f457b741245ed7f0ec8a Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Wed, 3 Apr 2024 09:32:24 +0800 Subject: [PATCH] * remove disabled LLMs from AI assistants creating and editing. --- module/ai/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/ai/control.php b/module/ai/control.php index 8fd52378b6..96dac3660a 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -390,7 +390,7 @@ class ai extends control return $this->send(array('result' => 'success', 'locate' => helper::createLink('ai', 'assistants'))); } - $models = $this->ai->getLanguageModels('', false); + $models = $this->ai->getLanguageModels('', true); $models = array_reduce($models, function($acc, $model) { $acc[$model->id] = $model->name; @@ -448,7 +448,7 @@ class ai extends control return $this->send(array('result' => 'success', 'locate' => helper::createLink('ai', 'assistants'))); } - $models = $this->ai->getLanguageModels('', false); + $models = $this->ai->getLanguageModels('', true); $models = array_reduce($models, function($acc, $model) { $acc[$model->id] = $model->name;