---
estimated_steps: 4
estimated_files: 1
skills_used: []
---

# T04: Update tests and add think-tag stripping test

1. Update _patch_llm_completions to handle new complete() signature (modality, model_override kwargs)
2. Update test_llm_fallback to account for new parameters
3. Add test_strip_think_tags with cases: single block, multiline, multiple blocks, no blocks, empty string
4. Run full test suite to verify nothing breaks

## Inputs

- `backend/tests/test_pipeline.py`

## Expected Output

- `backend/tests/test_pipeline.py (updated)`

## Verification

cd backend && python3 -m pytest tests/test_pipeline.py -v --tb=short 2>&1 | tail -20
