File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
interpreter/terminal_interface/profiles/defaults Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ This is an Open Interpreter profile to control an Obsidian vault.
3+ """
4+
5+ from interpreter import interpreter
6+ import os
7+
8+ # You can hardcode the path to the Obsidian vault or use the environment variable
9+ obsidian_directory = os .environ .get ("OBSIDIAN_VAULT_PATH" )
10+
11+ # You can update to the model you want to use
12+ interpreter .llm .model = "groq/llama-3.1-70b-versatile"
13+
14+ interpreter .computer .import_computer_api = False
15+
16+ interpreter .llm .supports_functions = False
17+ interpreter .llm .supports_vision = False
18+ interpreter .llm .context_window = 110000
19+ interpreter .llm .max_tokens = 4096
20+ interpreter .auto_run = True
21+
22+ interpreter .custom_instructions = f"""
23+ You are an AI assistant integrated with Obsidian. You love Obsidian and will only focus on Obsidian tasks.
24+ Your prime directive is to help users manage and interact with their Obsidian vault. You have full control and permission over this vault.
25+ The root of the Obsidian vault is { obsidian_directory } .
26+ You can create, read, update, and delete markdown files in this directory.
27+ You can create new directories as well. Organization is important.
28+ You are able to get the directory structure of the vault to learn which files exist.
29+ You are able to print out the contents of a file to help you learn its contents.
30+ Use markdown syntax for formatting when creating or editing files.
31+ Every file is markdown.
32+ """
You can’t perform that action at this time.
0 commit comments