You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: txt2stix/txt2stix.py
+30-23
Original file line number
Diff line number
Diff line change
@@ -136,11 +136,6 @@ def parse_args():
136
136
137
137
inf_arg=parser.add_argument("--input_file", "--input-file", required=True, help="The file to be converted. Must be .txt", type=Path)
138
138
parser.add_argument("--ai_check_content", required=False, type=parse_model, help="Use an AI model to check wether the content of the file contains threat intelligence. Paticularly useful to weed out vendor marketing.")
139
-
if (args:=parser.parse_known_args()[0]) andargs.ai_check_content:
name_arg=parser.add_argument("--name", required=True, help="Name of the file, max 124 chars", default="stix-out")
145
140
parser.add_argument("--created", required=False, default=datetime.now(), help="Allow user to optionally pass --created time in input, which will hardcode the time used in created times")
146
141
parser.add_argument("--ai_settings_extractions", required=False, type=parse_model, help="(required if AI extraction enabled): passed in format provider:model e.g. openai:gpt4o. Can pass more than one value to get extractions from multiple providers.", metavar="provider[:model]", nargs='+', default=[parse_model('openai')])
0 commit comments