Phase6/7 runtime + Gitea smoke gate setup #1

Merged
daarion-admin merged 214 commits from codex/sync-node1-runtime into main 2026-03-05 10:38:18 -08:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit acceac6929 - Show all commits

View File

@@ -775,7 +775,7 @@ async def agent_infer(agent_id: str, request: InferRequest):
# Add system prompt if available
if system_prompt:
if memory_brief_text:
vision_payload["system"] = f"{system_prompt}\n\n[Контекст пам'яті]\n{memory_brief_text}"
vision_payload["system"] = f"{system_prompt}\n\n[INTERNAL MEMORY - do NOT repeat to user]\n{memory_brief_text}"
else:
vision_payload["system"] = system_prompt
@@ -833,14 +833,14 @@ async def agent_infer(agent_id: str, request: InferRequest):
messages = []
if system_prompt:
if memory_brief_text:
enhanced_prompt = f"{system_prompt}\n\n[Контекст пам'яті]\n{memory_brief_text}"
enhanced_prompt = f"{system_prompt}\n\n[INTERNAL MEMORY - do NOT repeat to user]\n{memory_brief_text}"
messages.append({"role": "system", "content": enhanced_prompt})
logger.info(f"📝 Added system message with prompt ({len(system_prompt)} chars) + memory ({len(memory_brief_text)} chars)")
else:
messages.append({"role": "system", "content": system_prompt})
logger.info(f"📝 Added system message with prompt ({len(system_prompt)} chars)")
elif memory_brief_text:
messages.append({"role": "system", "content": f"[Контекст пам'яті]\n{memory_brief_text}"})
messages.append({"role": "system", "content": f"[INTERNAL MEMORY - do NOT repeat to user]\n{memory_brief_text}"})
logger.warning(f"⚠️ No system_prompt! Using only memory brief ({len(memory_brief_text)} chars)")
else:
logger.error(f"❌ No system_prompt AND no memory_brief! LLM will have no context!")

View File

@@ -393,7 +393,7 @@ class ToolManager:
if memory_retrieval and memory_retrieval.qdrant_client:
results = await memory_retrieval.search_memories(
query=query,
agent_id=agent_id or helion,
agent_id=agent_id or "helion",
limit=5
)