From eae8cf2bdfa7b8f4d2c7a8890a6c4a4fe158b3ce Mon Sep 17 00:00:00 2001 From: killian <63927363+KillianLucas@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:21:39 -0800 Subject: [PATCH] Potential syntax error fix --- scripts/wtf.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/wtf.py b/scripts/wtf.py index 3b86bddba..1e420bf68 100644 --- a/scripts/wtf.py +++ b/scripts/wtf.py @@ -116,7 +116,8 @@ def stop(self): if os.environ.get("SHELL"): shell = "Shell: " + os.environ.get("SHELL") -CUSTOM_MESSAGE_SYSTEM_MESSAGE = f""" +CUSTOM_MESSAGE_SYSTEM_MESSAGE = ( + r""" You are a fast, efficient AI assistant for terminal and coding tasks. When summoned, you will: @@ -132,15 +133,18 @@ def stop(self): - If more info is needed, provide a command to gather it (e.g., grep). - Focus on the user's FINAL query and ADDRESS NOTHING ELSE, using terminal history for context if relevant. - For multi-step solutions, explain briefly and provide the first or combined command. -- Prioritize addressing the user's specific request (at the END, after "wtf") efficiently. +- Prioritize addressing the user's specific request (at the END, after "wtf") efficiently.""" + + f""" User's System: {platform.system()} CWD: {os.getcwd()} {shell} """.strip() +) -LOCAL_SYSTEM_MESSAGE = f""" +LOCAL_SYSTEM_MESSAGE = ( + r""" You're a fast AI assistant for terminal issues. You must: 1. Scan terminal history @@ -161,7 +165,8 @@ def stop(self): We need to fix the file permissions on config.yml. ```bash chmod 644 config.yml -``` +```""" + + f""" User's System: {platform.system()} CWD: {os.getcwd()} @@ -169,6 +174,7 @@ def stop(self): Now, it's your turn: """ +) def main():