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
# Add this near the top of the file, with other imports and global variables
53
+
messages: List[BetaMessageParam] = []
54
+
40
55
41
56
defprint_markdown(message):
42
57
"""
@@ -87,7 +102,7 @@ class APIProvider(StrEnum):
87
102
* When using your bash tool with commands that are expected to output very large quantities of text, redirect into a tmp file and use str_replace_editor or `grep -n -B <lines before> -A <lines after> <query> <filename>` to confirm output.
88
103
* When viewing a page it can be helpful to zoom out so that you can see everything on the page. Either that, or make sure you scroll down to see everything before deciding something isn't available.
89
104
* 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.
90
-
* The current date is {datetime.today().strftime('%A, %B %-d, %Y')}.
105
+
* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.
91
106
</SYSTEM_CAPABILITY>
92
107
93
108
<IMPORTANT>
@@ -107,6 +122,7 @@ class APIProvider(StrEnum):
107
122
SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
108
123
* You are an AI assistant with access to a virtual machine running on {"Mac OS"ifplatform.system() =="Darwin"elseplatform.system()} with internet access.
109
124
* 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.
125
+
* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.
# Instead of running uvicorn here, we'll return the app
446
+
returnapp
447
+
448
+
# Original CLI code continues here...
337
449
print()
338
450
print_markdown("Welcome to **Open Interpreter**.\n")
339
451
print_markdown("---")
@@ -351,20 +463,22 @@ async def main():
351
463
importrandom
352
464
353
465
tips= [
354
-
"You can type `i` in your terminal to use Open Interpreter.",
355
-
"Type `wtf` in your terminal to have Open Interpreter fix the last error.",
356
-
"You can type prompts after `i` in your terminal, for example, `i want you to install node`. (Yes, really.)",
466
+
# "You can type `i` in your terminal to use Open Interpreter.",
467
+
"**Tip:** Type `wtf` in your terminal to have Open Interpreter fix the last error.",
468
+
# "You can type prompts after `i` in your terminal, for example, `i want you to install node`. (Yes, really.)",
469
+
"We recommend using our desktop app for the best experience. Type `d` for early access.",
470
+
"**Tip:** Reduce display resolution for better performance.",
357
471
]
358
472
359
473
random_tip=random.choice(tips)
360
474
361
475
markdown_text=f"""> Model set to `Claude 3.5 Sonnet (New)`, OS control enabled
362
476
363
-
We recommend using our desktop app for the best experience. Type `d` for early access.
477
+
{random_tip}
364
478
365
479
**Warning:** This AI has full system access and can modify files, install software, and execute commands. By continuing, you accept all risks and responsibility.
366
480
367
-
Move your mouse to any corner of the screen to exit. Reduce display resolution for better performance.
481
+
Move your mouse to any corner of the screen to exit.
0 commit comments