Releases: wayneworkman/emaillm
Releases · wayneworkman/emaillm
Release list
v0.1.1
fix: load all custom categories from config and fix classification bugs
Three bugs prevented custom categories (e.g., interviews,
application_confirmations) from working:
- load_config() only processed hardcoded category keys, silently
dropping any custom categories added to the folders config - classify_email_vllm() excluded 'prompt_injection' (wrong key)
instead of 'prompt_attack', leaking prompt injection detection
text into classification prompts and confusing the LLM - main() crashed with KeyError when aggregating inbox stats that
contained custom category keys not in the hardcoded total_stats dict
Fixes:
- load_config() now iterates over all folders keys in config
- classify_email_vllm() now excludes 'prompt_attack' correctly
- main() uses dict.get(key, 0) for safe stats aggregation
Add 13 regression tests in tests/test_custom_categories.py