[Bugfix]: Fix issue of context overspilling into other apps (#835)

This commit is contained in:
Deshraj Yadav
2023-10-19 17:46:33 -07:00
committed by GitHub
parent d18e533adf
commit a5c86a2f5c
2 changed files with 3 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ class BaseChunker(JSONSerializable):
for chunk in chunks:
chunk_id = hashlib.sha256((chunk + url).encode()).hexdigest()
chunk_id = f"{app_id}--{chunk_id}" if app_id is not None else chunk_id
if idMap.get(chunk_id) is None:
idMap[chunk_id] = True
chunk_ids.append(chunk_id)