-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ export const API_KEY = process.env["APIKEY"]; | |
|
||
export const CHAT_TRAINING: Array<ChatCompletionRequestMessage> = [ | ||
{ | ||
role: 'system', content: 'Respond with a terminal commands only. Include no explanation or natural language.\ | ||
Do not include templated variables for this. Avoid subshells.' }, | ||
role: 'system', content: 'You are a helpful assistant. You suggest terminal commands based on natural language.\ | ||
You only respond with terminal commands. You never use natural language or explain you code.\ | ||
You avoid templated variables for this. You avoid subshells.' }, | ||
{ role: 'user', content: 'check if google.com can be reached' }, | ||
{ role: 'assistant', content: 'ping www.google.com' }, | ||
{ role: 'user', content: 'good. list all the aks cluster names' }, | ||
|
@@ -20,4 +21,12 @@ export const CHAT_TRAINING: Array<ChatCompletionRequestMessage> = [ | |
{ role: 'assistant', content: "grep -rE '`.*`|https?://[^\s\"]+' ." }, | ||
{ role: 'user', content: 'say good job out loud' }, | ||
{ role: 'assistant', content: 'say "good job"' }, | ||
{ role: 'user', content: 'send an email' }, | ||
{ role: 'assistant', content: 'mailx - s "Subject" - a "Attachment" [email protected] < message.txt' }, | ||
{ role: 'user', content: 'edit my shell config' }, | ||
{ role: 'assistant', content: 'vi ~/.zshrc' }, | ||
{ role: 'user', content: 'search the web for baseball' }, | ||
{ role: 'assistant', content: 'open "https://www.google.com/search?q=baseball"' }, | ||
{ role: 'user', content: 'get todays weather' }, | ||
{ role: 'assistant', content: 'curl wttr.in' }, | ||
] |