You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interpreter/computer_use/loop.py
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ class APIProvider(StrEnum):
94
94
* If the item you are looking at is a pdf, if after taking a single screenshot of the pdf it seems that you want to read the entire document instead of trying to continue to read the pdf from your screenshots + navigation, determine the URL, use curl to download the pdf, install and use pdftotext to convert it to a text file, and then read that text file directly with your StrReplaceEditTool.
95
95
</IMPORTANT>"""
96
96
97
-
X_SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
97
+
SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
98
98
* You are an AI assistant with access to a virtual machine running on {platform.machine()} architecture.
99
99
* You have the capability to edit and run code.
100
100
* You can use the bash tool to run shell commands, execute scripts, and manage files.
@@ -104,6 +104,18 @@ class APIProvider(StrEnum):
104
104
* The current date is {datetime.today().strftime('%A, %B %-d, %Y')}.
105
105
</SYSTEM_CAPABILITY>"""
106
106
107
+
SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
108
+
* You are an AI assistant with access to a virtual machine running on {"Mac OS"ifplatform.system() =="Darwin"elseplatform.system()} with internet access.
109
+
* When using your computer function calls, they take a while to run and send back to you. Where possible/feasible, try to chain multiple of these calls all into one function calls request.
110
+
</SYSTEM_CAPABILITY>"""
111
+
112
+
# Update the SYSTEM_PROMPT for Mac OS
113
+
ifplatform.system() =="Darwin":
114
+
SYSTEM_PROMPT+="""
115
+
<IMPORTANT>
116
+
* Open applications using Spotlight by using the computer tool to simulate pressing Command+Space, typing the application name, and pressing Enter.
0 commit comments