Skip to content

Commit

Permalink
fixup file checker
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Dec 20, 2023
1 parent 5cf5d55 commit 0d4ae09
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
OpenAI Assistant Playground: https://platform.openai.com/playground
'''

import datetime
import datetime, os

try:
from openai import OpenAI
Expand Down Expand Up @@ -97,8 +97,12 @@ def get_filename_size_date_from_id(files_list, file_id):

# parse command line arguments
from argparse import ArgumentParser
parser = ArgumentParser(description="MAVProxy AI chat module OpenAI Assistant setup script")
parser = ArgumentParser(description="MAVProxy Chat Module Assistant File Checker")
parser.add_argument("--api-key", default=None, help="OpenAI API Key")
parser.add_argument("--delete-unused", action='store_true', help="delete unused files")
args = parser.parse_args()
try:
args = parser.parse_args()
except AttributeError as err:
parser.print_help()
os.sys.exit(0)
main(openai_api_key=args.api_key, delete_unused=args.delete_unused)

0 comments on commit 0d4ae09

Please sign in to comment.