@ -84,7 +84,7 @@ The 01 exposes a speech-to-speech websocket at `localhost:10001`.
If you stream raw audio bytes to `/` in [LMC format](https://docs.openinterpreter.com/protocols/lmc-messages), you will receive its response in the same format.
If you stream raw audio bytes to `/` in [LMC format](https://docs.openinterpreter.com/protocols/lmc-messages), you will receive its response in the same format.
Inspired in part by [Andrej Karpathy's LLM OS](https://twitter.com/karpathy/status/1723140519554105733), we run a [code-interpreting language model](https://github.com/OpenInterpreter/open-interpreter), and call it when certain events occur at your computer's [kernel](https://github.com/OpenInterpreter/01/blob/main/01OS/01OS/server/utils/kernel.py).
Inspired in part by [Andrej Karpathy's LLM OS](https://twitter.com/karpathy/status/1723140519554105733), we run a [code-interpreting language model](https://github.com/OpenInterpreter/open-interpreter), and call it when certain events occur at your computer's [kernel](https://github.com/OpenInterpreter/01/blob/main/software/source/server/utils/kernel.py).
@ -58,7 +58,7 @@ The `computer` module is ALREADY IMPORTED, and can be used for some tasks:
```python
```python
result_string=computer.browser.search(query)# Google search results will be returned from this function as a string
result_string=computer.browser.search(query)# Google search results will be returned from this function as a string
computer.calendar.create_event(title="Meeting",start_date=datetime.datetime.now(),end=datetime.datetime.now()+datetime.timedelta(hours=1),notes="Note",location="")# Creates a calendar event
computer.calendar.create_event(title="Meeting",start_date=datetime.datetime.now(),end_date=datetime.datetime.now()+datetime.timedelta(hours=1),notes="Note",location="")# Creates a calendar event
events_string=computer.calendar.get_events(start_date=datetime.date.today(),end_date=None)# Get events between dates. If end_date is None, only gets events for start_date
events_string=computer.calendar.get_events(start_date=datetime.date.today(),end_date=None)# Get events between dates. If end_date is None, only gets events for start_date
computer.calendar.delete_event(event_title="Meeting",start_date=datetime.datetime)# Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first
computer.calendar.delete_event(event_title="Meeting",start_date=datetime.datetime)# Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first
@ -92,7 +92,7 @@ computer.mouse.scroll(-10) # Scrolls down. If you don't find some text on screen
Youareanimage-basedAI,youcanseeimages.
Youareanimage-basedAI,youcanseeimages.
Clickingtextisthemostreliablewaytousethemouse—forexample,clickingaURL's text you see in the URL bar, or some textarea'splaceholdertext(like"Search"togetintoasearchbar).
Clickingtextisthemostreliablewaytousethemouse—forexample,clickingaURL's text you see in the URL bar, or some textarea'splaceholdertext(like"Search"togetintoasearchbar).
"Llamafile requires Mac users to have Xcode installed. You can install Xcode from https://developer.apple.com/xcode/ .\n\nAlternatively, you can use `LM Studio`, `Jan.ai`, or `Ollama` to manage local language models. Learn more at https://docs.openinterpreter.com/guides/running-locally ."
"Llamafile requires Mac users to have Xcode installed. You can install Xcode from https://developer.apple.com/xcode/ .\n\nAlternatively, you can use `LM Studio`, `Jan.ai`, or `Ollama` to manage local language models. Learn more at https://docs.openinterpreter.com/guides/running-locally ."
)
)
time.sleep(3)
time.sleep(3)
raiseException("Xcode is not installed. Please install Xcode and try again.")
raiseException(
"Xcode is not installed. Please install Xcode and try again."
interpreter.system_message="""You are the 01, a screenless executive assistant that can complete any task by writing and executing code on the user's machine. Just write a markdown code block! The user has given you full and complete permission.
result_string=computer.browser.search(query)# Google search results will be returned from this function as a string
computer.calendar.create_event(title="Meeting",start_date=datetime.datetime.now(),end_date=datetime.datetime.now()+datetime.timedelta(hours=1),notes="Note",location="")# Creates a calendar event
events_string=computer.calendar.get_events(start_date=datetime.date.today(),end_date=None)# Get events between dates. If end_date is None, only gets events for start_date
computer.calendar.delete_event(event_title="Meeting",start_date=datetime.datetime)# Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first
computer.mail.send("john@email.com","Meeting Reminder","Reminder that our meeting is at 3pm today.",["path/to/attachment.pdf","path/to/attachment2.pdf"])# Send an email with a optional attachments
emails_string=computer.mail.get(4,unread=True)# Returns the {number} of unread emails, or all emails if False is passed
unread_num=computer.mail.unread_count()# Returns the number of unread emails
computer.sms.send("555-123-4567","Hello from the computer!")# Send a text message. MUST be a phone number, so use computer.contacts.get_phone_number frequently here