Skip to content

Commit 36ec071

Browse files
authored
Merge pull request #1504 from OpenInterpreter/development
Windows fix
2 parents 348cec1 + 27ff3be commit 36ec071

File tree

3 files changed

+6
-28
lines changed

3 files changed

+6
-28
lines changed

interpreter/computer_use/loop.py

-23
Original file line numberDiff line numberDiff line change
@@ -95,29 +95,6 @@ class APIProvider(StrEnum):
9595
# We encourage modifying this system prompt to ensure the model has context for the
9696
# environment it is running in, and to provide any additional information that may be
9797
# helpful for the task at hand.
98-
SYSTEM_PROMPT = f"""<SYSTEM_CAPABILITY>
99-
* You are utilizing a virtual machine running {platform.system()} on {platform.machine()} architecture with internet access.
100-
* You can feel free to install applications with your bash tool.
101-
* Using bash tool you can start GUI applications. GUI apps run with bash tool will appear within your desktop environment, but they may take some time to appear. Take a screenshot to confirm it did.
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.
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.
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.
105-
* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.
106-
</SYSTEM_CAPABILITY>
107-
108-
<IMPORTANT>
109-
* 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.
110-
</IMPORTANT>"""
111-
112-
SYSTEM_PROMPT = f"""<SYSTEM_CAPABILITY>
113-
* You are an AI assistant with access to a virtual machine running on {platform.machine()} architecture.
114-
* You have the capability to edit and run code.
115-
* You can use the bash tool to run shell commands, execute scripts, and manage files.
116-
* You have access to a code editor tool for viewing and modifying source code files.
117-
* You can install and use command-line applications and development tools as needed.
118-
* 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' if platform.system() == 'Windows' else '%A, %B %-d, %Y')}.
120-
</SYSTEM_CAPABILITY>"""
12198

12299
SYSTEM_PROMPT = f"""<SYSTEM_CAPABILITY>
123100
* You are an AI assistant with access to a virtual machine running on {"Mac OS" if platform.system() == "Darwin" else platform.system()} with internet access.

interpreter/terminal_interface/start_terminal_interface.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@ def print_help(self, *args, **kwargs):
410410

411411
if args.version:
412412
version = pkg_resources.get_distribution("open-interpreter").version
413-
update_name = (
414-
"The Beginning (Ty and Victor)" # Change this with each major update
415-
)
413+
update_name = "Developer Preview" # Change this with each major update
416414
print(f"Open Interpreter {version} {update_name}")
417415
return
418416

@@ -478,7 +476,10 @@ def print_help(self, *args, **kwargs):
478476
### Set attributes on interpreter, because the arguments passed in via the CLI should override profile
479477

480478
set_attributes(args, arguments)
481-
interpreter.disable_telemetry=os.getenv("DISABLE_TELEMETRY", "false").lower() == "true" or args.disable_telemetry
479+
interpreter.disable_telemetry = (
480+
os.getenv("DISABLE_TELEMETRY", "false").lower() == "true"
481+
or args.disable_telemetry
482+
)
482483

483484
### Set some helpful settings we know are likely to be true
484485

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ packages = [
44
{include = "interpreter"},
55
{include = "scripts"},
66
]
7-
version = "0.4.2" # Use "-rc1", "-rc2", etc. for pre-release versions
7+
version = "0.4.3" # Use "-rc1", "-rc2", etc. for pre-release versions
88
description = "Let language models run code"
99
authors = ["Killian Lucas <[email protected]>"]
1010
readme = "README.md"

0 commit comments

Comments
 (0)