modcomms/backend/app
Vadym Samoilenko f520aba397 Fix KB distillation fallback and SpecVersion type annotation
- knowledge_base_service.py: wrap Gemini distillation call in try/except
  to fall back to fallback_client/fallback_model if primary times out,
  matching the fallback behaviour in GeminiService._generate_content()

- models.py: fix SpecVersion.source_document_ids ORM type annotation from
  Mapped[Optional[dict]] to Mapped[Optional[list]] — the field stores a
  JSON array of document ID strings, not an object

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 14:03:25 +00:00
..
agents Add toast notification when primary Gemini model falls back to backup 2026-03-02 13:00:12 +00:00
api Grant oversight_admin write access to campaigns and proofs 2026-03-03 13:08:54 +00:00
dependencies Fix email resolution from Azure AD token claims 2026-03-03 15:55:00 +00:00
models Fix KB distillation fallback and SpecVersion type annotation 2026-03-16 14:03:25 +00:00
repositories Populate email on login for users with empty email field 2026-03-03 15:45:48 +00:00
services Fix KB distillation fallback and SpecVersion type annotation 2026-03-16 14:03:25 +00:00
websocket Add debug logging to model_fallback callback in handlers.py 2026-03-02 13:08:25 +00:00
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
config.py Fix LlamaParse 401 + update logo to v5 2026-03-16 12:22:31 +00:00
main.py Fix LlamaParse 401 + update logo to v5 2026-03-16 12:22:31 +00:00