v1.0.176: remove verify=False — MITM fix

This commit is contained in:
2026-06-24 18:07:44 +04:00
parent a36c8fa2bf
commit b26728d9da
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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},
+1 -1
View File
@@ -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"},