Fixin' crap so relay works again. pre llm redo

This commit is contained in:
serversdwn
2025-11-26 14:20:47 -05:00
parent 0a091fc42c
commit a087de9790
4 changed files with 13 additions and 5 deletions

View File

@@ -22,15 +22,18 @@ async def reflect_notes(intake_summary: str, identity_block: dict | None) -> dic
"Rules for output:\n"
"1. Return ONLY valid JSON.\n"
"2. JSON must have exactly one key: \"notes\".\n"
"3. \"notes\" must be a list of 36 short strings.\n"
"3. \"notes\" must be a list of 3 to 6 short strings.\n"
"4. Notes must be actionable (e.g., \"keep it concise\", \"maintain context\").\n"
"5. No markdown, no apologies, no explanations.\n\n"
"Return JSON:\n"
"{ \"notes\": [\"...\"] }\n"
)
import os
backend = os.getenv("LLM_FORCE_BACKEND", "primary")
raw = await call_llm(prompt, backend="primary")
raw = await call_llm(prompt, backend=backend)
print("[Reflection-Raw]:", raw)