Using --no-deps for transformers left incompatible tokenizers==0.22.2
(needs <0.21). Split into two blocks: --no-deps only for langchain/openai,
full resolution for huggingface_hub + transformers ecosystem.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
No single huggingface_hub version has both HfFolder (llamafirewall)
and is_offline_mode (transformers 5.x). Fix: pin both packages to
compatible versions (verified locally).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: use huggingface_hub==0.26.2 (has both HfFolder and is_offline_mode)
0.24.0 was too old for transformers (missing is_offline_mode),
1.4.1 was too new for llamafirewall (removed HfFolder).
0.26.2 should have both as deprecated-but-importable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: force-reinstall huggingface_hub==0.24.0 after all installs
The earlier pin was getting overwritten by nemoguardrails pulling
a newer version. Moving it to the force-reinstall block ensures
it sticks.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pin huggingface_hub<0.25 to fix llamafirewall HfFolder import error
Clarify Alignment check prompt to validate alignment with pupose and with user request. Do not deal with correctness. Also add unit testing to validate that
- Created test_alignment_check.py with 4 comprehensive test scenarios
- Tests: aligned conversations, goal hijacking, off-topic redirects, error handling
- Optional in CI/CD: only runs if TOGETHER_API_KEY is configured
- Updated README with test documentation and API key requirements
- Updated GitHub Actions to support optional tests with proper counting