autonaming error logging
This commit is contained in:
@@ -125,6 +125,7 @@ async function chat(externalId, userMessage, options = {}) {
|
||||
}
|
||||
|
||||
async function chatStream(externalId, userMessage, onChunk, options = {}) {
|
||||
console.log('[orchestration] chatStream called:', { externalId, userMessage: userMessage.slice(0, 50) });
|
||||
let session = await memory.getSessionByExternalId(externalId);
|
||||
if (!session) session = await memory.createSession(externalId);
|
||||
|
||||
@@ -175,6 +176,7 @@ async function chatStream(externalId, userMessage, onChunk, options = {}) {
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('[orchestration] Failed to parse inference SSE event:', raw, err.message);
|
||||
throw err; // add this temporarily
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user