klg-asutk-app/backend/app/api
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
..
routes 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
deps.py fix(klg): безопасность, deps/security, attachments, CSP, api-client, удаление lib/api.ts 2026-02-14 23:06:22 +03:00
exceptions.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00
helpers.py feat(backend): 6 модулей для main/роутов + ws_notifications 2026-02-14 23:21:57 +03:00
oidc.py chore: add untracked project files (app, backend, components, docs, e2e, helm, hooks, keycloak, knowledge, lib, monitoring, public, tools, utils) 2026-02-14 23:29:18 +03:00
streaming.py Consolidation: KLG ASUTK + PAPA integration 2026-02-08 17:18:31 +03:00