Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: extend human_size() to include TB and PB units (Closes #3591) (#3592)

Cocoon-Break8097e6329ef6
diff --git a/src/local_deep_research/utilities/formatting.py b/src/local_deep_research/utilities/formatting.py
index b697a8197e..f3362c8526 100644
--- a/src/local_deep_research/utilities/formatting.py
+++ b/src/local_deep_research/utilities/formatting.py
@@ -10,8 +10,8 @@ def human_size(size_bytes: float) -> str:
Returns:
Human-readable string like "247.0 MB" or "1.5 GB".
"""
- for unit in ("B", "KB", "MB", "GB"):
+ for unit in ("B", "KB", "MB", "GB", "TB", "PB"):
if abs(size_bytes) < 1024:
return f"{size_bytes:.1f} {unit}"
size_bytes /= 1024
- return f"{size_bytes:.1f} TB"
+ return f"{size_bytes:.1f} EB"