Skip to content

Commit 7c1dcef

Browse files
committed
Request argument metadata in AI script prompts
Generated scripts need metadata for argument defaults and hints. prompt: Update AI script prompts to request // Arg comments in argument order, matching the example scripts.
1 parent 0d1a7e4 commit 7c1dcef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/gen_docs.fulltext_search.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@
741741
const prefix = widget.dataset.scriptExamplesUrl
742742
? "Write SumatraPDF ecma5 javascript script. API reference: https://www.sumatrapdfreader.org/docs/Tool-run-javascript-reference.md Example scripts: " +
743743
widget.dataset.scriptExamplesUrl +
744-
"\n"
744+
"\nAdd one '// Arg: initial value : description' comment for each argument, in scriptArgs order, as in the examples.\n"
745745
: undefined;
746746
sendToAi(btn.getAttribute("data-ai"), q, prefix);
747747
});

0 commit comments

Comments
 (0)