Skip to content

Commit

Permalink
Hard code system context id, rather than an id
Browse files Browse the repository at this point in the history
  • Loading branch information
mhughes2k committed Apr 22, 2024
1 parent 9164361 commit a853741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ai/classes/aiprovider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a853741

Please sign in to comment.