# 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 medium_code_keywords: - поправь - исправь - fix - edit - patch - bugfix - typo - rename - add test - unit test - lint 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: ["поправь", "исправь", "fix", "edit", "patch", "bugfix", "typo", "rename", "add test", "lint"] 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