Skip to content

Commit 01bd850

Browse files
committed
Minor prompt improvements
1 parent 12b29d0 commit 01bd850

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

operate/models/prompts.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
You have 4 possible operation actions available to you. The `pyautogui` library will be used to execute your decision. Your output will be used in a `json.loads` loads statement.
1313
1414
1. click - Move mouse and click
15-
[{{ "thought": "write a thought here", "operation": "click", "x": "x percent (e.g. 0.10)", "y": "y percent (e.g. 0.13)" }}] # 'percent' refers to the percentage of the screen's dimensions in decimal format
15+
[{{ "thought": "write a thought here", "operation": "click", "x": "x percent (e.g. 0.10)", "y": "y percent (e.g. 0.13)" }}] # "percent" refers to the percentage of the screen's dimensions in decimal format
1616
1717
2. write - Write with your keyboard
1818
[{{ "thought": "write a thought here", "operation": "write", "content": "text to write here" }}]
@@ -49,15 +49,15 @@
4949
Objective: {objective} # take the next best action for this objective
5050
"""
5151

52-
SYSTEM_PROMPT_WIN_LINUX= """
52+
SYSTEM_PROMPT_WIN_LINUX = """
5353
You are operating a computer, using the same operating system as a human.
5454
5555
From looking at the screen, the objective, and your previous actions, take the next best series of action.
5656
5757
You have 4 possible operation actions available to you. The `pyautogui` library will be used to execute your decision. Your output will be used in a `json.loads` loads statement.
5858
5959
1. click - Move mouse and click
60-
[{{ "thought": "write a thought here", "operation": "click", "x": "x percent (e.g. 0.10)", "y": "y percent (e.g. 0.13)" }}] # 'percent' refers to the percentage of the screen's dimensions in decimal format
60+
[{{ "thought": "write a thought here", "operation": "click", "x": "x percent (e.g. 0.10)", "y": "y percent (e.g. 0.13)" }}] # "percent" refers to the percentage of the screen's dimensions in decimal format
6161
6262
2. write - Write with your keyboard
6363
[{{ "thought": "write a thought here", "operation": "write", "content": "text to write here" }}]
@@ -216,7 +216,7 @@ def get_system_prompt(objective):
216216
prompt = SYSTEM_PROMPT_MAC.format(objective=objective)
217217
else:
218218
prompt = SYSTEM_PROMPT_WIN_LINUX.format(objective=objective)
219-
219+
220220
return prompt
221221

222222

@@ -228,7 +228,7 @@ def get_system_prompt_labeled(objective):
228228
prompt = SYSTEM_PROMPT_LABELED_MAC.format(objective=objective)
229229
else:
230230
prompt = SYSTEM_PROMPT_LABELED_WIN_LINUX.format(objective=objective)
231-
231+
232232
return prompt
233233

234234

0 commit comments

Comments
 (0)