Skip to content

Commit 7d8f06f

Browse files
committed
Introduced a template profile for Open Interpreter, including documentation and example settings, to facilitate creating custom profiles.
1 parent 33d6e55 commit 7d8f06f

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

docs/guides/profiles.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Profiles are Python files that configure Open Interpreter. A wide range of field
88

99
You can access your Profiles by running `interpreter --profiles`. This will open the directory where all of your Profiles are stored.
1010

11+
If you want to make your own profile, start with the [Template Profile](https://github.com/OpenInterpreter/open-interpreter/blob/main/interpreter/terminal_interface/profiles/defaults/template_profile.py).
12+
1113
To apply a Profile to an Open Interpreter session, you can run `interpreter --profile <name>`
1214

1315
# Example Profile
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
"""
2+
This is the template Open Interpreter profile.
3+
4+
A starting point for creating a new profile.
5+
6+
Learn about all the available settings - https://docs.openinterpreter.com/settings/all-settings
7+
8+
"""
9+
10+
# Import the interpreter
11+
from interpreter import interpreter
12+
13+
# You can import other libraries too
14+
from datetime import date
15+
16+
# You can set variables
17+
today = date.today()
18+
19+
# LLM Settings
20+
interpreter.llm.model = "groq/llama-3.1-70b-versatile"
21+
interpreter.llm.context_window = 110000
22+
interpreter.llm.max_tokens = 4096
23+
interpreter.llm.api_base = "https://api.example.com"
24+
interpreter.llm.api_key = "your_api_key_here"
25+
interpreter.llm.supports_functions = False
26+
interpreter.llm.supports_vision = False
27+
28+
29+
# Interpreter Settings
30+
interpreter.offline = False
31+
interpreter.loop = True
32+
interpreter.auto_run = False
33+
34+
# Toggle OS Mode - https://docs.openinterpreter.com/guides/os-mode
35+
interpreter.os = False
36+
37+
# Import Computer API - https://docs.openinterpreter.com/code-execution/computer-api
38+
interpreter.computer.import_computer_api = True
39+
40+
41+
# Set Custom Instructions to improve your Interpreter's performance at a given task
42+
interpreter.custom_instructions = f"""
43+
Today's date is {today}.
44+
"""

0 commit comments

Comments
 (0)