Fetching metadata from the HF Docker repository...
-
fix: address CodeRabbit review feedback for SPEC-21
- token_tracking.py: Handle both dict and Pydantic object access for usage
- retry.py: Add jitter (±25%) to exponential backoff to prevent thundering herd
- test_retry.py: Add pytestmark = pytest.mark.unit per coding guidelines
- test_token_tracking.py: Add pytestmark = pytest.mark.unit per coding guidelines -
refactor: implement proper middleware architecture (SPEC-21)
- Renames src/middleware → src/workflows (accurate naming)
- Creates proper src/middleware with ChatMiddleware implementations
- Implements RetryMiddleware (fixes HuggingFace 429 crashes)
- Implements TokenTrackingMiddleware (enables cost monitoring)
- Updates HuggingFaceChatClient to use new middleware
- Updates tests and imports