extraction error logging

This commit is contained in:
Storme-bit
2026-04-21 00:28:13 -07:00
parent b44d35e7cb
commit 781bf8a615

View File

@@ -222,9 +222,6 @@ async function chatStream(externalId, userMessage, onChunk, options = {}) {
let session = await memory.getSessionByExternalId(externalId); let session = await memory.getSessionByExternalId(externalId);
if (!session) session = await memory.createSession(externalId); if (!session) session = await memory.createSession(externalId);
const entities = await getRelevantEntities(userMessage, session.project_id ?? null);
console.log('[orchestration] entity search projectId:', session.project_id ?? null);
let projectSessionIds = null; let projectSessionIds = null;
let activeSystemPrompt = systemPrompt ?? ORCHESTRATION.SYSTEM_PROMPT; let activeSystemPrompt = systemPrompt ?? ORCHESTRATION.SYSTEM_PROMPT;
if (session.project_id) { if (session.project_id) {
@@ -261,6 +258,7 @@ async function chatStream(externalId, userMessage, onChunk, options = {}) {
); );
const entities = await getRelevantEntities(userMessage, session.project_id ?? null); const entities = await getRelevantEntities(userMessage, session.project_id ?? null);
console.log('[orchestration] entity search projectId:', session.project_id ?? null);
const prompt = buildPrompt( const prompt = buildPrompt(
recentEpisodes, recentEpisodes,