From 23e63508753a901e4f7be14c6e9c748325f96c21 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 19 Aug 2024 13:43:02 +0200 Subject: [PATCH] fix: do not send the user's display name in the chat instruct prompts by default Signed-off-by: Julien Veyssier --- lib/AppInfo/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 7bc0ef84..198ec651 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -36,8 +36,8 @@ class Application extends App implements IBootstrap { public const SPEECH_TO_TEXT_REC_FOLDER = 'stt_recordings'; public const ASSISTANT_DATA_FOLDER_NAME = 'Assistant'; - public const CHAT_USER_INSTRUCTIONS = 'This is a conversation in a specific language between {user} and you, Nextcloud Assistant. You are a kind, polite and helpful AI that helps {user} to the best of its abilities. If you do not understand something, you will ask for clarification. Detect the language that {user} is using. Make sure to use the same language in your response. Do not mention the language explicitly.'; - public const CHAT_USER_INSTRUCTIONS_TITLE = 'Above is a chat session in a specific language between {user} and you, Nextcloud Assistant. Generate a suitable title summarizing the conversation in the same language. Output only the title in plain text, nothing else.'; + public const CHAT_USER_INSTRUCTIONS = 'This is a conversation in a specific language between the user and you, Nextcloud Assistant. You are a kind, polite and helpful AI that helps the user to the best of its abilities. If you do not understand something, you will ask for clarification. Detect the language that the user is using. Make sure to use the same language in your response. Do not mention the language explicitly.'; + public const CHAT_USER_INSTRUCTIONS_TITLE = 'Above is a chat session in a specific language between the user and you, Nextcloud Assistant. Generate a suitable title summarizing the conversation in the same language. Output only the title in plain text, nothing else.'; public function __construct(array $urlParams = []) { parent::__construct(self::APP_ID, $urlParams);