-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Template Profile #1381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
KillianLucas
merged 2 commits into
openinterpreter:development
from
MikeBirdTech:template_profile
Aug 6, 2024
Merged
Template Profile #1381
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
interpreter/terminal_interface/profiles/defaults/template_profile.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| """ | ||
| This is the template Open Interpreter profile. | ||
|
|
||
| A starting point for creating a new profile. | ||
|
|
||
| Learn about all the available settings - https://docs.openinterpreter.com/settings/all-settings | ||
|
|
||
| """ | ||
|
|
||
| # Import the interpreter | ||
| from interpreter import interpreter | ||
|
|
||
| # You can import other libraries too | ||
| from datetime import date | ||
|
|
||
| # You can set variables | ||
| today = date.today() | ||
|
|
||
| # LLM Settings | ||
| interpreter.llm.model = "groq/llama-3.1-70b-versatile" | ||
| interpreter.llm.context_window = 110000 | ||
| interpreter.llm.max_tokens = 4096 | ||
| interpreter.llm.api_base = "https://api.example.com" | ||
| interpreter.llm.api_key = "your_api_key_here" | ||
| interpreter.llm.supports_functions = False | ||
| interpreter.llm.supports_vision = False | ||
|
|
||
|
|
||
| # Interpreter Settings | ||
| interpreter.offline = False | ||
| interpreter.loop = True | ||
| interpreter.auto_run = False | ||
|
|
||
| # Toggle OS Mode - https://docs.openinterpreter.com/guides/os-mode | ||
| interpreter.os = False | ||
|
|
||
| # Import Computer API - https://docs.openinterpreter.com/code-execution/computer-api | ||
| interpreter.computer.import_computer_api = True | ||
|
|
||
|
|
||
| # Set Custom Instructions to improve your Interpreter's performance at a given task | ||
| interpreter.custom_instructions = f""" | ||
| Today's date is {today}. | ||
| """ | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned all-settings into a list in this format if we want to provide them all here and then recommend removing irrelevant ones? Definitely could be overwhelming though, so not sure if needed:
LLM Settings - https://docs.openinterpreter.com/settings/all-settings#language-model
interpreter.llm.model = "groq/llama-3.1-70b-versatile" # Specifies which language model to use
interpreter.llm.temperature = 0.7 # Sets the randomness level of the model's output
interpreter.llm.context_window = 110000 # Manually set the context window size in tokens
interpreter.llm.max_tokens = 4096 # Sets the maximum number of tokens for model generation
interpreter.llm.max_output = 1000 # Set the maximum number of characters for code outputs
interpreter.llm.api_base = "https://api.example.com" # Specify custom API base URL
interpreter.llm.api_key = "your_api_key_here" # Set your API key for authentication
interpreter.llm.api_version = '2.0.2' # Optionally set the API version to use
interpreter.llm.supports_functions = False # Inform if the model supports function calling
interpreter.llm.supports_vision = False # Inform if the model supports vision
Interpreter Settings - https://docs.openinterpreter.com/settings/all-settings#interpreter
interpreter.loop = True # Runs Open Interpreter in a loop for task completion
interpreter.verbose = True # Run the interpreter in verbose mode for debugging
interpreter.safe_mode = 'ask' # Enable or disable experimental safety mechanisms
interpreter.auto_run = True # Automatically run without user confirmation
interpreter.max_budget = 0.01 # Sets the maximum budget limit for the session in USD
interpreter.offline = True # Run the model locally
interpreter.system_message = "You are Open Interpreter..." # Modify the system message (not recommended)
interpreter.anonymized_telemetry = False # Opt out of telemetry
interpreter.user_message_template = "{content} Please send me some code..." # Template applied to the User's message
interpreter.always_apply_user_message_template = False # Whether to apply User Message Template to every message
interpreter.code_output_template = "Code output: {content}\nWhat does this output mean?" # Template applied to code output
interpreter.empty_code_output_template = "The code above was executed..." # Message sent when code produces no output
interpreter.code_output_sender = "user" # Determines who sends code output messages
Computer Settings - https://docs.openinterpreter.com/settings/all-settings#computer
interpreter.computer.offline = True # Run the computer in offline mode
interpreter.computer.verbose = True # Used for debugging interpreter.computer
interpreter.computer.emit_images = True # Controls whether the computer should emit images
Import Computer API - https://docs.openinterpreter.com/code-execution/computer-api
interpreter.computer.import_computer_api = True
Toggle OS Mode - https://docs.openinterpreter.com/guides/os-mode
interpreter.os = False
Set Custom Instructions to improve your Interpreter's performance at a given task
interpreter.custom_instructions = """
Today's date is {today}.
"""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should include all settings because then we'll have to maintain documenting them in multiple places. A clear link to the docs will let people easily see up-to-date info. Having the highest priority settings should give people enough help to get started.
Any settings that you'd like to see included?