fleet-memory/hindsight-api/hindsight_api/engine/providers
Nicolò Boschi 73ef99e7b1
feat: add configurable Gemini/Vertex AI safety settings (#473)
Adds per-bank configurable safety settings for Gemini/Vertex AI:
- New `HINDSIGHT_API_LLM_GEMINI_SAFETY_SETTINGS` env var (JSON array)
- Hierarchical config field so banks can override via Config API
- ContextVar pattern for zero-signature-change per-request override
- All 6 thresholds supported: UNSPECIFIED, OFF, BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, BLOCK_ONLY_HIGH
- UI: Models > Gemini/Vertex AI section with per-category threshold selectors and link to Google docs
- Graceful handling when bank_config_api feature is disabled
- 12 new tests covering config parsing, GeminiLLM behaviour, and context var override
2026-03-03 13:48:29 +01:00
..
__init__.py feat: support for codex and claude-code as llm (#276) 2026-02-02 12:54:44 +01:00
anthropic_llm.py feat: add otel traceability (#330) 2026-02-10 12:20:48 +01:00
claude_code_llm.py fix: resolve JSON serialization and logging exception propagation in claude_code_llm (#458, #459) (#461) 2026-03-02 10:14:16 +01:00
codex_llm.py feat: add otel traceability (#330) 2026-02-10 12:20:48 +01:00
gemini_llm.py feat: add configurable Gemini/Vertex AI safety settings (#473) 2026-03-03 13:48:29 +01:00
mock_llm.py fix(performance): improve recall and retain performance on large banks (#469) 2026-03-03 13:35:22 +01:00
openai_compatible_llm.py feat: support Batch API for retain (openai/groq) (#365) 2026-02-16 13:31:50 +01:00