diff --git a/deploy/llm_prompt.py b/deploy/llm_prompt.py index 23dfcd3..650ae36 100644 --- a/deploy/llm_prompt.py +++ b/deploy/llm_prompt.py @@ -80,6 +80,8 @@ def _fetch_prompt(role: str) -> dict | None: ) resp.raise_for_status() 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"): return {"id": data.get("id", ""), "body": data["body"]} except Exception: diff --git a/index.cfm b/index.cfm index 074e982..a1ea686 100644 --- a/index.cfm +++ b/index.cfm @@ -75,7 +75,7 @@