klg-asutk-app/backend/app/api/routes
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
..
legal fix(klg): безопасность, deps/security, attachments, CSP, api-client, удаление lib/api.ts 2026-02-14 23:06:22 +03:00
modules Безопасность и качество: 8 исправлений + обновления 2026-02-14 21:29:16 +03:00
personnel refactor: legal package, personnel package, FGIS base_service, docs/SECURITY 2026-02-14 21:37:46 +03:00
__init__.py feat: все AI-функции переведены на Anthropic Claude API 2026-02-15 15:51:59 +03:00
ai.py feat: все AI-функции переведены на Anthropic Claude API 2026-02-15 15:51:59 +03:00
aircraft.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
airworthiness_core.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
airworthiness.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
attachments.py fix(klg): безопасность, deps/security, attachments, CSP, api-client, удаление lib/api.ts 2026-02-14 23:06:22 +03:00
audit.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
backup.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
batch.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
cert_applications.py fix(klg): безопасность, deps/security, attachments, CSP, api-client, удаление lib/api.ts 2026-02-14 23:06:22 +03:00
checklist_audits.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
checklists.py feat: 8 шаблонов чек-листов аудита ВС (РФ/ИКАО/EASA/FAA) + редактирование 2026-02-15 15:37:55 +03:00
defects.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
export.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
fgis_revs.py refactor: legal package, personnel package, FGIS base_service, docs/SECURITY 2026-02-14 21:37:46 +03:00
global_search.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
health.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
import_export.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
inbox.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
ingest.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
legal_legacy.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
metrics.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
modifications.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
notification_prefs.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
notifications.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
organizations.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
personnel_plg.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
regulator.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
risk_alerts.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
stats.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
tasks.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
users.py apply recommendations: security, get_db, exceptions, eslint, api-client 2026-02-14 21:48:58 +03:00
work_orders.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
ws_notifications.py feat(backend): 6 модулей для main/роутов + ws_notifications 2026-02-14 23:21:57 +03:00