mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-26 18:34:23 +01:00
Strip spaces from the end of truncated ai_name in log_cycle.py (#4672)
This commit is contained in:
committed by
GitHub
parent
d5afbbee26
commit
f277e6aa2d
@@ -43,7 +43,7 @@ class LogCycleHandler:
|
||||
return outer_folder_path
|
||||
|
||||
def get_agent_short_name(self, ai_name):
|
||||
return ai_name[:15] if ai_name else DEFAULT_PREFIX
|
||||
return ai_name[:15].rstrip() if ai_name else DEFAULT_PREFIX
|
||||
|
||||
def create_inner_directory(self, outer_folder_path: str, cycle_count: int) -> str:
|
||||
nested_folder_name = str(cycle_count).zfill(3)
|
||||
|
||||
Reference in New Issue
Block a user