fine tune prefixes for failure cases
This commit is contained in:
1 parent
de830717a5
commit
6ab527cc84
1 file changed
+1
-1
@@ -161,7 +161,7 @@ res_command = response.choices[0].message.content.strip()
|
||||
#Enable color output on Windows using colorama
|
||||
init()
|
||||
|
||||
prefixes = ("sorry", "i'm sorry", "the question is not clear")
|
||||
prefixes = ("sorry", "i'm sorry", "the question is not clear", "i'm", "i am")
|
||||
if res_command.lower().startswith(prefixes):
|
||||
print(colored("There was an issue: "+res_command, 'red'))
|
||||
sys.exit(-1)
|
||||
|
||||
Reference in new issue
Block a user