v1.0.112: fix Lucee UPPERCASE keys in _fetch_prompt (OK→ok, BODY→body)
This commit is contained in:
@@ -80,6 +80,8 @@ def _fetch_prompt(role: str) -> dict | None:
|
|||||||
)
|
)
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
data = resp.json()
|
data = resp.json()
|
||||||
|
# Lucee serializeJSON → UPPERCASE keys, normalize to lowercase
|
||||||
|
data = {k.lower(): v for k, v in data.items()}
|
||||||
if data.get("ok") and data.get("body"):
|
if data.get("ok") and data.get("body"):
|
||||||
return {"id": data.get("id", ""), "body": data["body"]}
|
return {"id": data.get("id", ""), "body": data["body"]}
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<img src="/nubes-logo.svg" alt="Nubes">
|
<img src="/nubes-logo.svg" alt="Nubes">
|
||||||
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.111 — Lucee</span></span>
|
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.112 — Lucee</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
Reference in New Issue
Block a user