muchdogesec / txt2stix

txt2stix is a Python script that is designed to identify and extract IoCs and TTPs from text files, identify the relationships between them, convert them to STIX 2.1 objects, and output as a STIX 2.1 bundle.
https://www.dogesec.com/
Apache License 2.0
22 stars 3 forks source link

Input token length not being observed for relationship ai mode #24

Closed himynamesdave closed 2 months ago

himynamesdave commented 2 months ago

19

My .env has

INPUT_TOKEN_LIMIT=1

Works fine for AI extraction modes (will throw error)

However, does not work when

--relationship_mode ai \  

Any length of file is allowed at present

Expected token check should be run on data sent to AI