klg-asutk-app/backend/app/services
Yuriy 44b14cc4fd feat: все AI-функции переведены на Anthropic Claude API
- ai_service.py: единый AI-сервис (chat, chat_with_history, analyze_document)
- routes/ai.py: POST /api/v1/ai/chat (chat, summarize, extract_risks, classify, translate)
- config.py: ANTHROPIC_API_KEY, ANTHROPIC_MODEL
- requirements.txt: anthropic>=0.42.0
- api-client.ts: aiApi (chat, summarize, extractRisks)
- CSP: connect-src добавлен https://api.anthropic.com
- app/api/ai-chat: прокси на бэкенд /api/v1/ai/chat (Anthropic)
- legal_agents/llm_client.py: переведён на ai_service (Claude)
- AIAccessSettings: только Claude (Sonnet 4, 3 Sonnet, 3 Opus)
- k8s, .env.example: OPENAI → ANTHROPIC
- package.json: удалена зависимость openai
- Документация: OpenAI/GPT заменены на Claude/Anthropic

Провайдер: исключительно Anthropic Claude
Модель по умолчанию: claude-sonnet-4-20250514

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-15 15:51:59 +03:00
..
fgis refactor: legal package, personnel package, FGIS base_service, docs/SECURITY 2026-02-14 21:37:46 +03:00
legal_agents feat: все AI-функции переведены на Anthropic Claude API 2026-02-15 15:51:59 +03:00
__init__.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00
ai_service.py feat: все AI-функции переведены на Anthropic Claude API 2026-02-15 15:51:59 +03:00
email_service.py fix: risk_scheduler() заглушка, email_service.send(to,subject,body), lifespan вызывает setup_scheduler(), таблица ревью п.4-9 и 19 2026-02-15 11:21:08 +03:00
fgis_revs.py refactor: legal package, personnel package, FGIS base_service, docs/SECURITY 2026-02-14 21:37:46 +03:00
notifications.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00
risk_scanner.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00
risk_scheduler.py fix: risk_scheduler() заглушка, email_service.send(to,subject,body), lifespan вызывает setup_scheduler(), таблица ревью п.4-9 и 19 2026-02-15 11:21:08 +03:00
scheduler.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00
security.py fix(klg): безопасность, deps/security, attachments, CSP, api-client, удаление lib/api.ts 2026-02-14 23:06:22 +03:00
storage.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00
ws_manager.py feat(backend): 6 модулей для main/роутов + ws_notifications 2026-02-14 23:21:57 +03:00