From 44a2effa92fa02c09e2194df546905d61a7b80e7 Mon Sep 17 00:00:00 2001 From: anders Date: Sun, 30 Jun 2024 11:06:45 +0200 Subject: [PATCH] Fixed build-lin4 --- oai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oai.py b/oai.py index 78e857c..d2128f3 100755 --- a/oai.py +++ b/oai.py @@ -181,7 +181,7 @@ def main(): parser.add_argument('prompt', type=str, nargs='?', help='Prompt to send') args = parser.parse_args() - if args.prov not in ['oai', 'oll']: + if hasattr(args, 'prov') and args.prov not in ['oai', 'oll']: print("Prov: "+args.prov) args.prompt = args.prov args.prov='oai'