Open Interpreter

Open Interpreter

1 min


[vc_headings linewidth=”0″ borderwidth=”1″ borderclr=”#000000″ title=”Open Interpreter” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” titlesize=”60″ titleclr=”#000000″]Allow language models to execute code on your computer.[/vc_headings]
Github logo

With Open Interpreter, you can execute code (Python, Javascript, Shell, and more) on your local machine. Open Interpreter has a ChatGPT-like interface that you can access in your terminal by typing  $ interpreter  after installation.

This gives you a natural-language way to interact with your computer’s general-purpose features:

✅Make and modify photos, videos, PDFs, etc.
✅Use a Chrome browser to do research
✅Visualize, process, and explore large datasets
…and many more.

Before executing any code, you will need to confirm it. This is a security measure to prevent unwanted or harmful actions.

[vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”How It Works” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2854″][/vc_headings]

How to Start Open Interpreter

pip install open-interpreter

Terminal

After installation, run interpreter:

interpreter

Python

import interpreter

interpreter.chat("Plot APPL and META's normalized stock prices") # Executes a single command
interpreter.chat() # Starts an interactive chat
[vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”Commands” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”3058″][/vc_headings]

Interactive Chat

If you want to chat with me in your terminal, you can launch the interpreter by typing interpreter on the command line:

interpreter

Or interpreter.chat() from a .py file:

interpreter.chat()

Programmatic Chat

To send messages directly to the chat function, use .chat(message):

interpreter.chat("Add subtitles to all videos in /videos.")

# ... Streams output to your terminal, completes task ...

interpreter.chat("These look great but can you make the subtitles bigger?")

# ...

Start a New Chat

One feature of Open Interpreter in Python is that it keeps track of what you have typed before. To clear the previous commands and start over, you can use the reset option:

interpreter.reset()

Save and Restore Chats

If you set return_messages to True, interpreter.chat() will give you a List of messages. You can use this list to continue a conversation later by passing it to interpreter.load(messages):

messages = interpreter.chat("My name is Killian.", return_messages=True) # Save messages to 'messages'
interpreter.reset() # Reset interpreter ("Killian" will be forgotten)

interpreter.load(messages) # Resume chat from 'messages' ("Killian" will be remembered)

Customize System Message

Open Interpreter’s system message can be customized and adjusted to enhance its features, change its access, or provide more background.

interpreter.system_message += """
Run shell commands with -y so the user doesn't have to confirm them.
"""
print(interpreter.system_message)

Change the Model

To use Code Llama , you can launch the interpreter locally from the command line.

interpreter --local

For gpt-3.5-turbo, you can use fast mode:

interpreter --fast

Or, in Python, set the model manually:

interpreter.model = "gpt-3.5-turbo"

Note: Open Interpreter is not affiliated with OpenAI.

[mvc_advanced_button align=”center” btn_text=”Github” icon_size=”25″ use_theme_fonts=”yes” btn_icon=”fab fa-github” btn_url=”url:https%3A%2F%2Fgithub.com%2FKillianLucas%2Fopen-interpreter|target:_blank” btn_clr=”#ffffff” btn_bg=”#0a0a0a” btn_radius=”50″]
[mvc_advanced_button align=”center” btn_text=”Website” icon_size=”25″ use_theme_fonts=”yes” btn_url=”url:https%3A%2F%2Fopeninterpreter.com%2F|target:_blank” btn_clr=”#ffffff” btn_bg=”#ff4300″ btn_radius=”50″ btn_icon=”fab fa-windows”]
[mvc_advanced_button align=”center” btn_text=”Colab” icon_size=”25″ use_theme_fonts=”yes” btn_icon=”fab fa-google” btn_url=”url:https%3A%2F%2Fcolab.research.google.com%2Fdrive%2F1WKmRXZgsErej2xUriKzxrEAXdxMSgWbb%3Fusp%3Dsharing|target:_blank” btn_clr=”#ffffff” btn_bg=”#0e76a8″ btn_radius=”50″]

Like it? Share with your friends!

0

0 Comments

Your email address will not be published. Required fields are marked *

Belmechri

I am an IT engineer, content creator, and proud father with a passion for innovation and excellence. In both my personal and professional life, I strive for excellence and am committed to finding innovative solutions to complex problems.
Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Meme
Upload your own images to make custom memes
Video
Youtube and Vimeo Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF
Gif
GIF format