entity isolation and estimateTokenFix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user