From 4fd138b13d90068c8d0bb039758243be6c3097d9 Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Sun, 7 Apr 2024 17:10:43 +0800 Subject: [PATCH] * fix assistants list model property. --- module/ai/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ai/control.php b/module/ai/control.php index e838c722ec..47b1b0dfef 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -300,7 +300,7 @@ class ai extends control $models = $this->ai->getLanguageModels('', false); $assistants = array_map(function ($assistant) use ($models) { - $assistant->model = current(array_filter($models, function ($model) use ($assistant) + $assistant->modelId = current(array_filter($models, function ($model) use ($assistant) { return $model->id == $assistant->modelId; }))->name;