Skip to content

Commit 23e6350

Browse files
committed
fix: do not send the user's display name in the chat instruct prompts by default
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent fd02990 commit 23e6350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AppInfo/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class Application extends App implements IBootstrap {
3636
public const SPEECH_TO_TEXT_REC_FOLDER = 'stt_recordings';
3737
public const ASSISTANT_DATA_FOLDER_NAME = 'Assistant';
3838

39-
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.';
40-
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.';
39+
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.';
40+
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.';
4141

4242
public function __construct(array $urlParams = []) {
4343
parent::__construct(self::APP_ID, $urlParams);

0 commit comments

Comments
 (0)