Skip to content

Commit 348cec1

Browse files
authored
Merge pull request #1496 from umayado17/fix-windows-date-format
Fix: Change date format string for Windows compatibility
2 parents 13061d2 + e99f792 commit 348cec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/computer_use/loop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class APIProvider(StrEnum):
116116
* You have access to a code editor tool for viewing and modifying source code files.
117117
* You can install and use command-line applications and development tools as needed.
118118
* When dealing with large outputs, use redirection to temporary files and tools like `grep` or the str_replace_editor to analyze the content efficiently.
119-
* The current date is {datetime.today().strftime('%A, %B %-d, %Y')}.
119+
* The current date is {datetime.today().strftime('%A, %B %#d, %Y' if platform.system() == 'Windows' else '%A, %B %-d, %Y')}.
120120
</SYSTEM_CAPABILITY>"""
121121

122122
SYSTEM_PROMPT = f"""<SYSTEM_CAPABILITY>

0 commit comments

Comments
 (0)