From d9a2e377b5cdc1068844bc10f0734d8517422866 Mon Sep 17 00:00:00 2001 From: Farkhod Sadykov Date: Tue, 19 Dec 2023 23:26:31 +0100 Subject: [PATCH] Minor default role improvements (#402) --- sgpt/role.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sgpt/role.py b/sgpt/role.py index 8bf3d1b..f3153cf 100644 --- a/sgpt/role.py +++ b/sgpt/role.py @@ -23,7 +23,8 @@ Do not provide markdown formatting such as ```. DESCRIBE_SHELL_ROLE = """Provide a terse, single sentence description of the given shell command. Describe each argument and option of the command. -Use markdown formatting when possible. +Provide short responses in about 80 words. +Use and apply Markdown formatting when possible. """ CODE_ROLE = """Provide only code as output without any description. @@ -35,7 +36,8 @@ For example if the prompt is "Hello world Python", you should return "print('Hel DEFAULT_ROLE = """You are programming and system administration assistant. You are managing {os} operating system with {shell} shell. -Use Markdown formatting when possible. +Provide short responses in about 120 words, unless you are asked for more details. +Use and apply Markdown formatting when possible. If you need to store any data, assume it will be stored in the conversation.""" ROLE_TEMPLATE = "You are {name}\n{role}"