Skip to content

Commit b4b9450

Browse files
committed
Update Open Interpreter profile for ScreenPipe to leverage Llama 3.1 70b with Groq API.
1 parent 3697c33 commit b4b9450

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

interpreter/terminal_interface/profiles/defaults/screenpipe.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""
22
This is an Open Interpreter profile specialized for searching ScreenPipe history.
3-
It is configured to run Anthropic's `Claude 3.5 Sonnet`.
3+
It leverages Llama 3.1 70b served by Groq and requires the environment variable GROQ_API_KEYH to be set.
44
"""
55

66
# Configure Open Interpreter
77
from interpreter import interpreter
88
from datetime import datetime, timezone
99

10-
interpreter.llm.model = "claude-3-5-sonnet-20240620"
10+
interpreter.llm.model = "groq/llama-3.1-70b-versatile"
1111
interpreter.computer.import_computer_api = False
1212
interpreter.llm.supports_functions = False
1313
interpreter.llm.supports_vision = False
1414
interpreter.llm.context_window = 100000
15-
interpreter.llm.max_tokens = 8192
15+
interpreter.llm.max_tokens = 4096
1616

1717
# Add the current date and time in UTC
1818
current_datetime = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S UTC")
@@ -89,9 +89,10 @@ def search_screenpipe(query, limit=5, start_time=None, end_time=None):
8989
results = search_screenpipe("project meeting", limit=5, start_time="2024-10-16T12:00:00Z", end_time="2024-10-16T19:00:00Z")
9090
9191
for result in results:
92-
print(f"Text: {{result['content']['text'][:100]}}...") # Print first 100 characters
92+
print(f"Text: {{result['content']['text'][:300]}}...") # Print first 100 characters
9393
print(f"Source: {{result['content']['app_name']}} - {{result['content']['window_name']}}")
9494
print(f"Timestamp: {{result['content']['timestamp']}}")
9595
```
9696
97+
Write valid code.
9798
"""

0 commit comments

Comments
 (0)