Skip to content

Commit 2946ee5

Browse files
committed
Add new profile for Cerebras AI with Open Interpreter settings and instructions.
1 parent f8c06cc commit 2946ee5

File tree

1 file changed

+32
-0
lines changed
  • interpreter/terminal_interface/profiles/defaults

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"""
2+
This is an Open Interpreter profile to use Cerebras.
3+
4+
Please set the CEREBRAS_API_KEY environment variable.
5+
6+
See https://inference-docs.cerebras.ai/introduction for more information.
7+
"""
8+
9+
from interpreter import interpreter
10+
import os
11+
12+
# LLM settings
13+
interpreter.llm.api_base = "https://api.cerebras.ai/v1"
14+
interpreter.llm.model = "openai/llama3.1-70b" # or "openai/Llama-3.1-8B"
15+
interpreter.llm.api_key = os.environ.get("CEREBRAS_API_KEY")
16+
interpreter.llm.supports_functions = False
17+
interpreter.llm.supports_vision = False
18+
interpreter.llm.max_tokens = 4096
19+
interpreter.llm.context_window = 8192
20+
21+
22+
# Computer settings
23+
interpreter.computer.import_computer_api = False
24+
25+
# Misc settings
26+
interpreter.offline = False
27+
interpreter.auto_run = False
28+
29+
# Custom Instructions
30+
interpreter.custom_instructions = f"""
31+
32+
"""

0 commit comments

Comments
 (0)