Skip to content

Commit 49c8d19

Browse files
committed
Fix: Change date format string for Windows compatibility
- Changed %-d to %d in date format string to support Windows - Fixes ValueError when running with --os flag on Windows
1 parent eded6a2 commit 49c8d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/computer_use/loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class APIProvider(StrEnum):
101101
* You have access to a code editor tool for viewing and modifying source code files.
102102
* You can install and use command-line applications and development tools as needed.
103103
* When dealing with large outputs, use redirection to temporary files and tools like `grep` or the str_replace_editor to analyze the content efficiently.
104-
* The current date is {datetime.today().strftime('%A, %B %-d, %Y')}.
104+
* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.
105105
</SYSTEM_CAPABILITY>"""
106106

107107
SYSTEM_PROMPT = f"""<SYSTEM_CAPABILITY>

0 commit comments

Comments
 (0)