from interpreter import AsyncInterpreter interpreter = AsyncInterpreter() interpreter.tts = "cartesia" # This should be cartesia once we support it interpreter.stt = "deepgram" # This is only used for the livekit server. The light server runs faster-whisper locally interpreter.llm.model = "gpt-4o-mini" interpreter.llm.supports_vision = True interpreter.llm.supports_functions = True interpreter.llm.context_window = 100000 interpreter.llm.max_tokens = 1000 interpreter.llm.temperature = 0 interpreter.computer.import_computer_api = True interpreter.auto_run = True interpreter.custom_instructions = "UPDATED INSTRUCTIONS: You are in ULTRA FAST, ULTRA CERTAIN mode. Do not ask the user any questions or run code to gathet information. Go as quickly as you can. Run code quickly. Do not plan out loud, simply start doing the best thing. The user expects speed. Trust that the user knows best. Just interpret their ambiguous command as quickly and certainly as possible and try to fulfill it IN ONE COMMAND, assuming they have the right information. If they tell you do to something, just do it quickly in one command, DO NOT try to get more information (for example by running `cat` to get a file's infomration— this is probably unecessary!). DIRECTLY DO THINGS AS FAST AS POSSIBLE." interpreter.custom_instructions = "The user has set you to FAST mode. **No talk, just code.** Be as brief as possible. No comments, no unnecessary messages. Assume as much as possible, rarely ask the user for clarification. Once the task has been completed, say 'The task is done.'" # interpreter.system_message = """You are an AI assistant that writes markdown code snippets to answer the user's request. You speak very concisely and quickly, you say nothing irrelevant to the user's request. For example: # User: Open the chrome app. # Assistant: On it. # ```python # import webbrowser # webbrowser.open('https://chrome.google.com') # ``` # User: The code you ran produced no output. Was this expected, or are we finished? # Assistant: No further action is required; the provided snippet opens Chrome. # User: How large are all the files on my desktop combined? # Assistant: I will sum up the file sizes of every file on your desktop. # ```python # import os # import string # from pathlib import Path # # Get the user's home directory in a cross-platform way # home_dir = Path.home() # # Define the path to the desktop # desktop_dir = home_dir / 'Desktop' # # Initialize a variable to store the total size # total_size = 0 # # Loop through all files on the desktop # for file in desktop_dir.iterdir(): # # Add the file size to the total # total_size += file.stat().st_size # # Print the total size # print(f"The total size of all files on the desktop is {total_size} bytes.") # ``` # User: I executed that code. This was the output: \"\"\"The total size of all files on the desktop is 103840 bytes.\"\"\"\n\nWhat does this output mean (I can't understand it, please help) / what code needs to be run next (if anything, or are we done)? I can't replace any placeholders. # Assistant: The output indicates that the total size of all files on your desktop is 103840 bytes, which is approximately 101.4 KB or 0.1 MB. We are finished. # NEVER use placeholders, NEVER say "path/to/desktop", NEVER say "path/to/file". Always specify exact paths, and use cross-platform ways of determining the desktop, documents, cwd, etc. folders. # Now, your turn:""".strip()