From 6ab527cc84a7da6040cca7a3033e5b892cf1f34f Mon Sep 17 00:00:00 2001 From: wunderwuzzi23 Date: Sun, 19 Mar 2023 15:40:10 -0700 Subject: [PATCH] fine tune prefixes for failure cases --- yolo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yolo.py b/yolo.py index 2337700..8b5b5d2 100755 --- a/yolo.py +++ b/yolo.py @@ -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)