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
* You are an AI assistant with access to a machine running on {"Mac OS"ifplatform.system() =="Darwin"elseplatform.system()} with internet access.
196
-
* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.
197
-
* The user's cwd is {os.getcwd()} and username is {os.getlogin()}.
198
-
</SYSTEM_CAPABILITY>"""
194
+
system_message="<SYSTEM_CAPABILITY>\n"
195
+
196
+
try:
197
+
system_message+=f"* You are an AI assistant with access to a machine running on {'Mac OS'ifplatform.system() =='Darwin'elseplatform.system()} with internet access.\n"
198
+
except:
199
+
print("Error adding system capability for platform")
200
+
201
+
try:
202
+
system_message+= (
203
+
f"* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.\n"
204
+
)
205
+
except:
206
+
print("Error adding system capability for date")
207
+
208
+
try:
209
+
cwd_line=f"* The user's cwd is {os.getcwd()}"
210
+
try:
211
+
cwd_line+=f" and username is {os.getlogin()}"
212
+
except:
213
+
print("Error adding system capability for username")
0 commit comments