entity isolation and estimateTokenFix

This commit is contained in:
Storme-bit
2026-08-18 02:57:05 -07:00
parent e9ceee15fa
commit dce63b6f7b
5 changed files with 56 additions and 33 deletions
@@ -216,6 +216,14 @@ async function getEpisodesByEntities(entityIds) {
return res.json(); // { episodeIds: [...] }
}
async function getEntityIdsBySession(sessionId){
const res = await fetch(`${BASE_URL}/sessions/${sessionId}/entity-ids`);
if (!res.ok) throw new Error(`Entity-ids-by-session error: ${res.status}`);
const {entityIds} = await res.jaon();
return entityIds;
}
module.exports = {
getSessionByExternalId,
createSession,