v1.0.176: remove verify=False — MITM fix
This commit is contained in:
@@ -180,7 +180,7 @@ EDGE-CASES:
|
|||||||
def _fetch_prompt(role: str) -> dict | None:
|
def _fetch_prompt(role: str) -> dict | None:
|
||||||
"""Получить активный промпт из БД. Возвращает {id, body} или None."""
|
"""Получить активный промпт из БД. Возвращает {id, body} или None."""
|
||||||
try:
|
try:
|
||||||
with httpx.Client(http2=True, timeout=10, verify=False) as client:
|
with httpx.Client(http2=True, timeout=10) as client:
|
||||||
resp = client.get(
|
resp = client.get(
|
||||||
f"{LUCEE_URL}/prompt.cfm",
|
f"{LUCEE_URL}/prompt.cfm",
|
||||||
params={"action": "get_active", "role": role},
|
params={"action": "get_active", "role": role},
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ def _call_llm_classify(header_text):
|
|||||||
"max_tokens": 1000,
|
"max_tokens": 1000,
|
||||||
"temperature": 0.1,
|
"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(
|
resp = client.post(
|
||||||
LLM_URL, json=payload,
|
LLM_URL, json=payload,
|
||||||
headers={"Authorization": f"Bearer {LLM_KEY}", "Content-Type": "application/json"},
|
headers={"Authorization": f"Bearer {LLM_KEY}", "Content-Type": "application/json"},
|
||||||
|
|||||||
Reference in New Issue
Block a user