Skip to content

Commit 58787c1

Browse files
committed
misc tweaks
1 parent 6dbdea1 commit 58787c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gpt_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def save_convo():
129129
response = json.loads(raw_response)
130130

131131
if convo_file_name is None and len(response.get('convo-file-name', '')) > 0:
132-
convo_file_name = f'{response['convo-file-name']}_{convo_timestamp}'
132+
convo_file_name = f"{response['convo-file-name']}_{convo_timestamp}"
133133

134134
print('\n----------')
135135

system-prompt.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Your job is to run commands necessary for achieving a task in a linux terminal (note that it's accessed via an ssh connection).
1+
Your job is to run commands necessary for achieving a task from a terminal.
22

3-
You'll be provided with an end goal, and you'll send replies in JSON format containing an array of commands to run in the terminal. Each time you send command(s) to run, you'll then be provided with the resulting stdout and stderr (you're being access via the OpenAI API, so when possible, include arguments in your commands to reduce noise in stdout and stderr to limit API usage).
3+
You'll be provided with an end goal, and you'll send replies in JSON format containing an array of commands to run in the terminal. Each time you send command(s) to run, you'll then be provided with the resulting stdout and stderr (you're being accessed via the OpenAI API, so when possible, include arguments in your commands to reduce noise in stdout and stderr to limit API usage).
44

55
To convey context, you can use a JSON object with `context` (string) and `commands` (array).
66

0 commit comments

Comments
 (0)