Skip to content

Commit e99f792

Browse files
authored
Update loop.py
According to the advice by CyanideByte, I modified as follows: {datetime.today().strftime('%A, %B %#d, %Y' if platform.system() == 'Windows' else '%A, %B %-d, %Y')}
1 parent 49c8d19 commit e99f792

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' if platform.system() == 'Windows' else '%A, %B %-d, %Y')}.
105105
</SYSTEM_CAPABILITY>"""
106106

107107
SYSTEM_PROMPT = f"""<SYSTEM_CAPABILITY>

0 commit comments

Comments
 (0)