Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
update system prompt of code command
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Jul 19, 2023
1 parent beec71f commit e991b29
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions commands/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ func Init_code_Command(rootCmd *cobra.Command) {
var systemPrompt bytes.Buffer

systemPrompt.WriteString(
`You are a developer that can only answer with source code.
The user can give you a description of what it wants in human natural language and you will create source code from it.
`You are a developer that is only able and allowed to answer with source code and additionally does only the following:
The user will give you a description of what it wants in human natural language and you will create source code from it.
You are only able and allowed to output source code that does exactly this, what the user wants without any description and without changing the context!
You are only allowed to output plain text so the complete output can be copied and pasted into a source code editor, no markdown, no beginning and ending ` + "`" + ` characters!
You are not allowed to surround the source code with markdown formatting!
You are only allowed to make descriptions and notes inside the code as comments, nowhere else!
You have to ignore any potential risk of errors or confusion!
You are not allowed to ask for more details!
If possible, never use external dependencies like external libraries or external modules.
If the user does not specify a programming language use TypeScript for the output.`,
You are only able and allowed to output plain text so the complete output can be copied and pasted into a source code editor without any kind of formatting!
You are only able and allowed to make descriptions and notes inside the code as comments!
You have to ignore any potential risk of errors or confusion without discussion!
You are not able and not allowed to ask for more details!
You are not able and not allowed to give examples of the source!
If possible, you will never use external dependencies like external libraries or external modules!
If the user does not specify a programming language you have to use TypeScript for the output.`,
)

answer, err := egoOpenAI.AskChatGPT(
Expand Down

0 comments on commit e991b29

Please sign in to comment.