feat(ift): EventHub AI Router stack for Zed
CI / build-gateway (push) Successful in 27s
CI / sync-config (push) Successful in 1s

FastAPI gateway with A/B/C lane orchestration, LiteLLM proxy config,
Swarm stack (postgres, redis, VPN off-by-default), deploy/smoke/audit scripts.
This commit is contained in:
2026-08-07 22:06:41 +03:00
commit 83d516afa1
29 changed files with 2005 additions and 0 deletions
+77
View File
@@ -0,0 +1,77 @@
# Tier classification — single source for gateway + LiteLLM keyword rules
gateway:
simple_patterns:
- "^(привет|hello|hi|hey|спасибо|thanks|что такое|what is|define)\\b"
complex_keywords:
- рефакторинг
- refactor
- архитектур
- architecture
- спроектируй
- design system
- microservice
- distributed
- migration plan
- deep refactor
reasoning_keywords:
- step by step
- prove
- analyze deeply
- think through
- reasoning
medium_ops_keywords:
- bash
- docker
- swarm
- ci/cd
- gitea
- rebar
- erlang
- devops
- kubectl
- terraform
- playwright
- npm
- wsl
- litellm
- novita
- traefik
- mnesia
ocr_keywords:
- ocr
- прочитай текст
- extract text
- распознай текст
- read text from
escalation_keywords:
- не подходит
- лучше
- качественнее
- retry
- попробуй ещё
word_thresholds:
simple_max_words: 12
simple_question_max_words: 25
complex_min_words: 400
medium_code_min_lines: 200
confidence:
low_threshold: 0.6
litellm:
keyword_tier_rules:
- keywords: ["привет", "hello", "hi", "thanks", "спасибо", "что такое", "what is", "define"]
tier: SIMPLE
- keywords: ["bash", "docker", "swarm", "ci/cd", "gitea", "rebar", "erlang", "devops", "kubectl", "terraform", "playwright", "npm", "wsl"]
tier: MEDIUM
- keywords: ["рефакторинг", "refactor", "архитектура", "architecture", "спроектируй", "design system", "microservice", "distributed", "migration plan"]
tier: COMPLEX
- keywords: ["step by step", "reasoning", "prove", "analyze deeply", "think through"]
tier: REASONING
custom_technical_keywords:
- erlang
- rebar3
- traefik
- mnesia
- litellm
- novita