Fix everything, add tg-get-document-content

This commit is contained in:
Cyber MacGeddon 2026-03-09 13:32:00 +00:00
parent e02b834b22
commit 1e9e3d0cd5
5 changed files with 98 additions and 11 deletions

View file

@ -687,6 +687,8 @@ class Librarian:
# Fetch only the requested range
chunk_content = await self.blob_store.get_range(object_id, offset, length)
is_last = (chunk_index == total_chunks - 1)
logger.debug(f"Streaming chunk {chunk_index + 1}/{total_chunks}, "
f"bytes {offset}-{offset + length} of {total_size}")
@ -698,5 +700,6 @@ class Librarian:
total_chunks=total_chunks,
bytes_received=offset + length,
total_bytes=total_size,
is_final=is_last,
)