cohorta/backend/app/models
Vadym Samoilenko d92a099ade feat(ai-config): wire admin UI to LLM service — endpoint/key/model from DB
- _get_runtime_config(): reads active provider endpoint, api_key, main/mini
  model from app_settings (60s cache), falls back to env vars
- get_azure_client() now async, accepts cfg dict
- All generate_* methods call _get_runtime_config() per invocation so DB
  changes take effect without restart
- app_settings: _seed_from_env() backfills empty endpoint/api_key from env
  vars on first load so the admin UI shows current values immediately

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 13:10:40 +01:00
..
app_settings.py feat(ai-config): wire admin UI to LLM service — endpoint/key/model from DB 2026-05-25 13:10:40 +01:00
credit_transaction.py Rebrand to Cohorta + full UI redesign + registration with email verification 2026-05-23 18:40:08 +01:00
focus_group.py feat: commit all app changes — billing API, new auth, design overhaul 2026-05-23 19:04:43 +01:00
folder.py Apply Jintech security audit remediation (sprint 3) — 87/92 findings fixed 2026-03-20 12:51:18 +00:00
model_pricing.py Add LLM usage tracking infrastructure (Phases A-C) 2026-04-24 18:08:27 +01:00
persona.py Apply Jintech security audit remediation (sprint 3) — 87/92 findings fixed 2026-03-20 12:51:18 +00:00
quota.py Add LLM usage tracking infrastructure (Phases A-C) 2026-04-24 18:08:27 +01:00
usage_event.py Add LLM usage tracking infrastructure (Phases A-C) 2026-04-24 18:08:27 +01:00
user.py fix: import datetime class in User.save() — NameError blocked all registration 2026-05-23 22:47:13 +01:00