modcomms/backend/app
Vadym Samoilenko 82e38e8853 Add gemini-3-flash-preview fallback and Cloud Run service config
gemini_service.py: if the primary model (gemini-3.1-pro-preview) is
unavailable or returns a permission error, all three call sites now
automatically retry with gemini-3-flash-preview before propagating failure.

cloudrun.yaml: new Cloud Run service definition that ensures stable
WebSocket operation — 10-minute request timeout (vs 60s default),
2 vCPU / 4Gi RAM for PDF rasterisation, min 1 warm instance to prevent
cold-start disconnects, and GEMINI_API_KEY sourced from Secret Manager
so the service can actually reach the Gemini API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-02 11:18:57 +00:00
..
agents Standardise Issue/Recommendation formatting across all agents 2026-02-19 10:17:08 -06:00
api Grant oversight_admin read-only access to User Management 2026-02-24 13:35:07 -06:00
dependencies Add 4-tier RBAC backend: auth dependencies, role enforcement, agency filtering 2026-02-19 08:28:23 -06:00
models Add user change history audit trail for compliance 2026-02-22 08:41:16 -06:00
repositories Add per-agency analytics breakdown table for admin users 2026-02-22 14:33:48 -06:00
services Add gemini-3-flash-preview fallback and Cloud Run service config 2026-03-02 11:18:57 +00:00
websocket Fix missing Submitter/Agency on Auditing Errors tab 2026-03-01 18:21:10 +00:00
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
config.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
main.py Fix missing Submitter/Agency on Auditing Errors tab 2026-03-01 18:21:10 +00:00