Liao, Jie
a4875c66b8
test: add test for per-attack image directories and improve error handling
...
- Add test_generate_test_cases.py to verify each attack uses its own image directory
- Improve error messages in unified_registry for failed imports with more context
- Add null checks in generate_test_cases.py for attack initialization failures
- Reduce excessive max_tokens in judge_utils from 130000 to 10000 for efficiency
- Add missing ThreadPoolExecutor import in qr/attack.py
- Fix missing newline in pyproject.toml
2026-03-02 12:41:12 +08:00
Liao, Jie
c17ed45e34
refactor: simplify logging statements and fix deadlock in batch error handling
...
- Consolidate multi-line logging statements into single lines for consistency
- Add critical note about lock acquisition in _save_batch docstring
- Fix potential deadlock: remove lock acquisition in error handler as caller already holds lock
- Remove trailing whitespace in process_with_strategy
2026-02-27 21:30:09 +08:00
Liao, Jie
04a1cbe8d1
refactor: consolidate duplicate code and fix deadlock bug
...
- Extract duplicate attack/defense config merging into _merge_component_configs()
- Extract duplicate lazy loading logic into _get_component()
- Move content policy detection to BaseModel base class
- Fix BatchSaveManager deadlock by splitting flush logic
- Add TypeError to ValueError conversion for consistent config errors
- Move _determine_load_model() to BaseComponent (explicit field only)
2026-01-23 12:55:34 +08:00
Liao, Jie
84a4d1708e
Enhance project configuration and structure: Added build-system requirements in pyproject.toml, updated README for installation instructions, and refactored attack classes to utilize a new create_test_case method. Introduced a plugins.yaml for component registration and removed the legacy registry initialization file.
2025-12-18 23:36:12 +08:00
leo0481
becb9c8624
update
2025-12-10 12:45:03 +08:00
jiaxiaojunQAQ
05209b1912
readme
2025-12-10 00:47:10 +08:00
jiaxiaojunQAQ
d1ec20d998
readme
2025-12-10 00:43:14 +08:00
jiaxiaojunQAQ
536a3b5311
readme
2025-12-09 23:46:02 +08:00
leo0481
78b902647c
update README.md
2025-12-09 22:36:37 +08:00
leo0481
b71096946c
update code
2025-12-09 22:30:51 +08:00
gq-max
f6ef209e63
Update links in Integrated Attack Methods section
2025-12-03 20:54:51 +08:00
gq-max
94ffd2e59c
Update table format and add venue information
2025-12-03 20:52:41 +08:00
jiaxiaojunQAQ
915db82299
Update
2025-12-03 01:49:57 +08:00
jiaxiaojunQAQ
c8f00cb565
Update
2025-12-03 01:42:18 +08:00
jiaxiaojunQAQ
f5afcc33b7
Update
2025-12-03 01:19:22 +08:00
jiaxiaojunQAQ
543e8feb25
Update
2025-12-03 01:18:13 +08:00
jiaxiaojunQAQ
4ed6bbd026
Update
2025-12-03 01:14:51 +08:00
jiaxiaojunQAQ
453552bf54
Update
2025-12-03 01:11:17 +08:00
jiaxiaojunQAQ
0a30a1e973
add readme
2025-11-03 02:28:54 +08:00
gq-max
7acfe3d158
Update README.md
2025-11-02 23:08:00 +08:00
Gnet Ma sysu
1d309ff4b2
Update README.md
2025-11-02 21:47:16 +08:00
Gnet Ma sysu
4b6a22a4f0
Update README.md
2025-11-02 21:36:01 +08:00
Gnet Ma sysu
bfe7e0df31
Update README.md
2025-11-02 21:33:49 +08:00
Gnet Ma sysu
037b257a7e
Update README.md
2025-11-02 21:16:35 +08:00
Gnet Ma sysu
6dd9a29e29
Update README.md
2025-11-02 21:15:26 +08:00
jiaxiaojun
9c44a56ccd
Initial commit
2025-10-30 15:42:59 +08:00