feat: ai-gateway (LiteLLM) + секция ai: для окружений #37

Merged
pxc1984 merged 1 commit from feat/ai-gateway into master 2026-10-29 18:33:11 +00:00
Owner

Что

  • projects/ai-gateway.yaml: LiteLLM на ai.cu3rd.ru, зона grm, Postgres без pooler (Prisma-миграции)
  • modules/ai: ключ LiteLLM и Secret для окружения из секции ai: (модели, бюджет, rpm/tpm)
  • postgres.pooler: false — прямое подключение к pg-grm-rw
  • валидация в scripts/config.py, README, docs/operations.md, tests/test_ai.py

Проверено

  • python -m unittest discover -s tests: 45 OK (5 skipped)

Не проверено (CI/ревью)

  • tofu fmt/validate (провайдер berriai/litellm 1.104.4, lock-файл обновлён)

После merge

  1. В репозитории cu3rd/ai-gateway — секреты и первый PR (образ с реальным тегом).
  2. TF_VAR_litellm_master_key в runtime.env на nxs нужна только когда какое-то окружение закажет ai:.

🤖 Generated with Claude Code

## Что - `projects/ai-gateway.yaml`: LiteLLM на `ai.cu3rd.ru`, зона **grm**, Postgres без pooler (Prisma-миграции) - `modules/ai`: ключ LiteLLM и Secret для окружения из секции `ai:` (модели, бюджет, rpm/tpm) - `postgres.pooler: false` — прямое подключение к `pg-grm-rw` - валидация в `scripts/config.py`, README, `docs/operations.md`, `tests/test_ai.py` ## Проверено - `python -m unittest discover -s tests`: 45 OK (5 skipped) ## Не проверено (CI/ревью) - `tofu fmt/validate` (провайдер `berriai/litellm` 1.104.4, lock-файл обновлён) ## После merge 1. В репозитории `cu3rd/ai-gateway` — секреты и первый PR (образ с реальным тегом). 2. `TF_VAR_litellm_master_key` в runtime.env на nxs нужна только когда какое-то окружение закажет `ai:`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: ai-gateway (LiteLLM) project and ai env section
All checks were successful
Validate self-service / check (pull_request) Successful in 30s
612111f9c0
- projects/ai-gateway.yaml: LiteLLM on ai.cu3rd.ru, zone grm, direct Postgres
- modules/ai: per-environment LiteLLM key + Secret from `ai:` section
- postgres: optional `pooler: false` for session-based clients (Prisma)
- docs and tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
xfx1337 requested review from sre 2026-10-29 18:02:39 +00:00
pxc1984 approved these changes 2026-10-29 18:32:58 +00:00
pxc1984 merged commit ac138a657c into master 2026-10-29 18:33:11 +00:00
pxc1984 deleted branch feat/ai-gateway 2026-10-29 18:33:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cu3rd/self-service!37
No description provided.