Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
Update promptfoo configuration files for build and fix
ZanzyTHEbarc61ba48bf31e
diff --git a/app/scripts/cmd/gen/gen.go b/app/scripts/cmd/gen/gen.goindex 40fbd558..cf82e72f 100644--- a/app/scripts/cmd/gen/gen.go+++ b/app/scripts/cmd/gen/gen.go@@ -21,7 +21,7 @@ func main() {log.Fatalf("Error creating directory: %s", err)}- f, err := os.Create(fmt.Sprintf("%s/%s", dirPath, "promptfooconfig.yml"))+ f, err := os.Create(fmt.Sprintf("%s/%s", dirPath, "promptfooconfig.yaml"))if err != nil {log.Fatalf("Error creating file: %s", err)}@@ -51,7 +51,7 @@ func main() {}}- // Template for promptfooconfig.yml+ // Template for promptfooconfig.yamlymlTemplate := `description: "{{ .Name }}"prompts:@@ -63,7 +63,7 @@ providers:tests: tests/*.tests.yml`- // Populate promptfooconfig.yml+ // Populate promptfooconfig.yamlpromptFooConfigTmpl, err := template.New("yml").Parse(ymlTemplate)if err != nil {log.Fatalf("Error creating template: %s", err)@@ -91,9 +91,9 @@ nested_parameters_json={{ .Name }}.parameters.json}defer configFile.Close()- file, err := os.Create(fmt.Sprintf("%s/promptfooconfig.yml", dirPath))+ file, err := os.Create(fmt.Sprintf("%s/promptfooconfig.yaml", dirPath))if err != nil {- log.Fatalf("Error creating promptfooconfig.yml: %s", err)+ log.Fatalf("Error creating promptfooconfig.yaml: %s", err)}defer file.Close()diff --git a/test/evals/promptfoo-poc/build/build.prompt.txt b/test/evals/promptfoo-poc/build/build.prompt.txtindex ed7a0926..9d4afc7b 100644--- a/test/evals/promptfoo-poc/build/build.prompt.txt+++ b/test/evals/promptfoo-poc/build/build.prompt.txt@@ -85,12 +85,12 @@ If *any* change has the 'entireFile' key in the 'old' property set to true, theExample change object:---{- summary: "Fix syntax error in loop body.",- old: {- startLineString: "pdx-5: for i := 0; i < 10; i++ { ",- endLineString: "pdx-7: }",+ "summary": "Fix syntax error in loop body.",+ "old": {+ "startLineString": "pdx-5: for i := 0; i < 10; i++ { ",+ "endLineString": "pdx-7: }"},- new: "for i := 0; i < 10; i++ {\n execQuery()\n }\n }\n}",+ "new": "for i := 0; i < 10; i++ {\n execQuery()\n }\n }\n}"}---diff --git a/test/evals/promptfoo-poc/build/promptfooconfig.yml b/test/evals/promptfoo-poc/build/promptfooconfig.yamlsimilarity index 100%rename from test/evals/promptfoo-poc/build/promptfooconfig.ymlrename to test/evals/promptfoo-poc/build/promptfooconfig.yaml