From b26728d9da8ecef1ca2b8f5f6ebf1e161dc7270e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Wed, 24 Jun 2026 18:07:44 +0400 Subject: [PATCH] =?UTF-8?q?v1.0.176:=20remove=20verify=3DFalse=20=E2=80=94?= =?UTF-8?q?=20MITM=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/llm_prompt.py | 2 +- deploy/services/classify.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/llm_prompt.py b/deploy/llm_prompt.py index 214046a..ddcdd07 100644 --- a/deploy/llm_prompt.py +++ b/deploy/llm_prompt.py @@ -180,7 +180,7 @@ EDGE-CASES: def _fetch_prompt(role: str) -> dict | None: """Получить активный промпт из БД. Возвращает {id, body} или None.""" try: - with httpx.Client(http2=True, timeout=10, verify=False) as client: + with httpx.Client(http2=True, timeout=10) as client: resp = client.get( f"{LUCEE_URL}/prompt.cfm", params={"action": "get_active", "role": role}, diff --git a/deploy/services/classify.py b/deploy/services/classify.py index 1bb5866..936b8fb 100644 --- a/deploy/services/classify.py +++ b/deploy/services/classify.py @@ -40,7 +40,7 @@ def _call_llm_classify(header_text): "max_tokens": 1000, "temperature": 0.1, } - with httpx.Client(http2=True, timeout=60, verify=False) as client: + with httpx.Client(http2=True, timeout=60) as client: resp = client.post( LLM_URL, json=payload, headers={"Authorization": f"Bearer {LLM_KEY}", "Content-Type": "application/json"},