mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
chore: keep root budget focused on entries
This commit is contained in:
parent
ed51a61d23
commit
1e9230fe1e
2 changed files with 0 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"max_tracked_root_dirs": 24,
|
||||
"max_tracked_root_entries": 64,
|
||||
"max_tracked_root_file_bytes": 3489661,
|
||||
"max_tracked_root_files": 40
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,11 +34,9 @@ def current_root_metrics() -> dict[str, int]:
|
|||
else:
|
||||
root_dirs.add(parts[0])
|
||||
|
||||
root_file_bytes = sum(Path(file_path).stat().st_size for file_path in root_files)
|
||||
return {
|
||||
"max_tracked_root_dirs": len(root_dirs),
|
||||
"max_tracked_root_entries": len(root_files) + len(root_dirs),
|
||||
"max_tracked_root_file_bytes": root_file_bytes,
|
||||
"max_tracked_root_files": len(root_files),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue