diff --git a/ai/classes/aiprovider.php b/ai/classes/aiprovider.php index b6bf2c4509863..8496d55309f84 100644 --- a/ai/classes/aiprovider.php +++ b/ai/classes/aiprovider.php @@ -234,7 +234,8 @@ public static function get_records($filters = [], $sort = '', $order = 'ASC', $s 'embeddingmodel' => '', 'completions' => 'chat', 'completionmodel' => 'llama2', - 'contextid' => 111, // Global AI Provider + 'contextid' => \context_system::instance()->id, + // 111, // Global AI Provider 'onlyenrolledcourses' => true, ]); array_push($records, $fake);