Skip to content

Commit

Permalink
Strip spaces from the end of truncated ai_name in log_cycle.py (Signi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts authored Jun 12, 2023
1 parent d5afbbe commit f277e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/log_cycle/log_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_outer_directory(self, ai_name: str, created_at: str) -> str:
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)
Expand Down

0 comments on commit f277e6a

Please sign in to comment.