Skip to content

Commit

Permalink
fix: 🛠️ modify prompts and update file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 18, 2024
1 parent e73f04c commit b379fe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/promptdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ ${trimNewlines(schemaText)}

const fods = fileOutputs?.filter((f) => !!f.description)
if (fods?.length > 0) {
userPrompt += `
systemPrompt += `
## File generation rules
When generating files, use the following rules which are formatted as "file glob: description":
Expand Down
4 changes: 2 additions & 2 deletions packages/sample/src/edits/editsgen.genai.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
script({
files: "src/edits/fib.ts",
files: "src/edits/fibs/fib.ts",
})
$`Generation 1 variations of the SNIPPET in various programming languages and save them in files.
- there should be lines with comments
- there should be a function with a TODO comment and a BODY comment
`
def("FILE", env.files)
defFileOutput("src/edits/**")
defFileOutput("src/edits/**/*", "generated files")

0 comments on commit b379fe6

Please sign in to comment.