|
1 | 1 | """
|
2 | 2 | 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. |
4 | 4 | """
|
5 | 5 |
|
6 | 6 | # Configure Open Interpreter
|
7 | 7 | from interpreter import interpreter
|
8 | 8 | from datetime import datetime, timezone
|
9 | 9 |
|
10 |
| -interpreter.llm.model = "claude-3-5-sonnet-20240620" |
| 10 | +interpreter.llm.model = "groq/llama-3.1-70b-versatile" |
11 | 11 | interpreter.computer.import_computer_api = False
|
12 | 12 | interpreter.llm.supports_functions = False
|
13 | 13 | interpreter.llm.supports_vision = False
|
14 | 14 | interpreter.llm.context_window = 100000
|
15 |
| -interpreter.llm.max_tokens = 8192 |
| 15 | +interpreter.llm.max_tokens = 4096 |
16 | 16 |
|
17 | 17 | # Add the current date and time in UTC
|
18 | 18 | 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):
|
89 | 89 | results = search_screenpipe("project meeting", limit=5, start_time="2024-10-16T12:00:00Z", end_time="2024-10-16T19:00:00Z")
|
90 | 90 |
|
91 | 91 | 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 |
93 | 93 | print(f"Source: {{result['content']['app_name']}} - {{result['content']['window_name']}}")
|
94 | 94 | print(f"Timestamp: {{result['content']['timestamp']}}")
|
95 | 95 | ```
|
96 | 96 |
|
| 97 | +Write valid code. |
97 | 98 | """
|
0 commit comments