Skip to content

Commit da805a1

Browse files
committed
MBS-10572: Changes from CR
1 parent a0cd46a commit da805a1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lang/en/aichat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
$string['privacy:metadata:block_ai_chat_personas_selected:contextid'] = 'The context ID of the AI chat activity';
5353
$string['privacy:metadata:block_ai_chat_personas_selected:personasid'] = 'The ID of the selected persona';
5454
$string['privacy:metadata:local_ai_manager_request_log'] = 'Stores conversation data (prompts and AI responses) for the AI chat activity in the local_ai_manager request log table';
55-
$string['privacy:metadata:local_ai_manager_request_log:component'] = 'The component identifier (block_ai_chat) that created this log entry';
55+
$string['privacy:metadata:local_ai_manager_request_log:component'] = 'The component identifier (mod_aichat) that created this log entry';
5656
$string['privacy:metadata:local_ai_manager_request_log:contextid'] = 'The context ID of the AI chat activity where the conversation took place';
5757
$string['privacy:metadata:local_ai_manager_request_log:promptcompletion'] = 'The AI response to the user\'s prompt';
5858
$string['privacy:metadata:local_ai_manager_request_log:prompttext'] = 'The prompt text sent by the user to the AI';

lib.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@
2424
*/
2525

2626
/**
27-
* Adds a new aichat instance
27+
* Adds a new aichat instance.
2828
*
2929
* @param stdClass $data aichat record
30-
* @return int the aichat instance id
30+
* @return int|false the aichat instance id or false if it could not been added
3131
*/
32-
function aichat_add_instance($data): int {
32+
function aichat_add_instance($data): int|false {
3333
global $DB;
3434
return $DB->insert_record('aichat', $data);
3535
}
3636

3737
/**
38-
* Updates an aichat instance
38+
* Updates an aichat instance.
3939
*
4040
* @param stdClass $data aichat record
41-
* @return int the aichat instance id
41+
* @return bool if the update was successful
4242
*/
43-
function aichat_update_instance($data): int {
43+
function aichat_update_instance($data): bool {
4444
global $DB;
4545
$data->id = $data->instance;
4646
return $DB->update_record('aichat', $data);

0 commit comments

Comments
 (0)