modcomms/backend/app/models
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
..
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
database.py permissions changes 2025-12-18 16:51:27 +00:00
models.py Fix KB distillation fallback and SpecVersion type annotation 2026-03-16 14:03:25 +00:00
schemas.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00