From 4b95423de335735851a5ebbe9118e5cc47ceba93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 09:46:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=D1=86=D0=B8=D1=8F,=20=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B8,=20=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- llm.key | 7 +++++++ sonnet-v2-request.md | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 llm.key create mode 100644 sonnet-v2-request.md diff --git a/.gitignore b/.gitignore index 9db60d4..7b62bb7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ FILES -contracts-app/ \ No newline at end of file +contracts-app/ +dogovora/ \ No newline at end of file diff --git a/llm.key b/llm.key new file mode 100644 index 0000000..24ec53b --- /dev/null +++ b/llm.key @@ -0,0 +1,7 @@ +Ntazetdinov@nubes.ru +https://api.aillm.ru/ +sk-ucI5YvOticoOQ9Kuj5K9mQ + + +Deepseek flash +sk-78ec529c1eba4ba69995091046c9fa33 diff --git a/sonnet-v2-request.md b/sonnet-v2-request.md new file mode 100644 index 0000000..2470c8d --- /dev/null +++ b/sonnet-v2-request.md @@ -0,0 +1,13 @@ +Напиши код в папку `/home/naeel/nubes/contracts/contracts-app/v2/`. Не трогай `site/`. 4 файла по 100-150 строк: + +**1. `v2/chunk_upload.js`** — клиент: FileReader → base64, File.slice() по 32KB, XHR последовательно с прогрессом (имя, %, таймер). После всех чанков — кнопка «Парсинг». + +**2. `v2/chunk_api.py`** — Flask Blueprint: `POST /v2/chunk` (принять 32KB base64 в памяти), `POST /v2/finalize` (собрать → Redis очередь). + +**3. `v2/worker.py`** — фоном: BRPOP Redis → base64 decode → INSERT documents + supplements → pdfplumber/python-docx парсинг → elements_json. + +**4. `v2/init.py`** — подключение к Redis/БД с теми же env что в `site/`. + +**Ресурсы:** Redis (redisk8s...svc.cluster.local, pass aLITloRefJEiCPqUc2xB), PostgreSQL (postgresqlk8s-master...svc.cluster.local). + +**Не копировать старый код. Строго 150 строк/файл. Только реализация.**