From f8d599bfa20f258b61f4a44d2a67e856b2b2fb67 Mon Sep 17 00:00:00 2001 From: Ashik K Date: Mon, 10 Apr 2023 11:03:33 +0200 Subject: [PATCH] fix a minor bug in silent mode --- smartsh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smartsh.py b/smartsh.py index 611ab8c..b15020a 100755 --- a/smartsh.py +++ b/smartsh.py @@ -42,7 +42,8 @@ else: completion = None apioutput = None if api_model == "text-davinci-003": - print("Using model " + api_model) + if smarsh_dont_warn != True: + print("Using model " + api_model) # Get the completion from OpenAI completion = openai.Completion.create( model="text-davinci-003",