From ae4d9eca309630e9ae23f649bdc1468dbce10af8 Mon Sep 17 00:00:00 2001 From: Ashik K Date: Sun, 9 Apr 2023 18:12:47 +0200 Subject: [PATCH] minor fix for prompt --- smartsh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartsh.py b/smartsh.py index a47bf08..cf211a6 100755 --- a/smartsh.py +++ b/smartsh.py @@ -7,7 +7,7 @@ openai.api_key = os.environ.get("OPENAI_API_KEY") # argcmd contains the entire command line arguments as a space separated string argcmd = " ".join(sys.argv) -prompt = "Suggest a linux shell command to accomplish the following. If the entered string is already a valid command, suggest installing the required packages: " + argcmd +prompt = "Suggest a linux shell command to accomplish the following: " + argcmd completion = openai.ChatCompletion.create( model = 'gpt-3.5-turbo', messages = [