Skip to content

Commit

Permalink
updated a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 13, 2024
1 parent 1b273d5 commit 4043807
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 24 deletions.
3 changes: 2 additions & 1 deletion packages/sample/genaisrc/dup.genai.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
script({
choices: ["FAIL", "SUCCESS"],
tests: {
keywords: "SUCCESS",
},
})
def("FILE", "hello world")
def("FILE", "hello world")

$`If FILE is defined twice in the prompt, respond with FAIL; otherwise respond SUCCESS`
$`If <FILE> is defined twice in the prompt, respond with FAIL; otherwise respond SUCCESS`
2 changes: 1 addition & 1 deletion packages/sample/genaisrc/files.genai.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
script({
model: "gpt-3.5-turbo",
model: "small",
system: ["system", "system.files"],
tests: {},
})
Expand Down
1 change: 1 addition & 0 deletions packages/sample/genaisrc/summarize-files-function.genai.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ script({
title: "summarize-files-function",
tools: ["fs"],
model: "small",
files: ["src/rag/*"],
tests: {
files: ["src/rag/*"],
keywords: ["markdown", "lorem", "word"],
Expand Down
19 changes: 0 additions & 19 deletions packages/sample/genaisrc/summarize-gpt4.genai.js

This file was deleted.

6 changes: 3 additions & 3 deletions packages/sample/genaisrc/todo.genai.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ script({

def("CODE", env.files, { lineNumbers: true })

$`In CODE, when you encounter a comment starting by "TODO",
generate code for the TODO comment in a DIFF format and use the information in SPEC.
Remove implemented TODOs from CODE.
$`In <CODE>, when you encounter a comment starting by "TODO",
generate code for the TODO comment.
Remove implemented TODOs from <CODE>.
Do not regenerate unmodified files.
`

0 comments on commit 4043807

Please sign in to comment.