Skip to content

Commit

Permalink
prompt update
Browse files Browse the repository at this point in the history
  • Loading branch information
valkjsaaa committed Nov 13, 2023
1 parent 1690db3 commit cc71547
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/__test__/dsl-descriptor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("Restaurant Description", async () => {
"\t// The current restaurant\n" +
"\tstatic Restaurant current();\n" +
"\t// Book a table for a given date time\n" +
"\tvoid book(dateTime: DateTime);\n" +
"\tvoid book(dateTime: DateTime? = DateTime.today());\n" +
"}"
);
});
3 changes: 0 additions & 3 deletions lib/nl/prompt-res.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ export const array_definition =
"\n" +
" // Get length of an array\n" +
" int length();\n" +
"\n" +
" // Index (`array[index]`) into an array (index can be negative, which means counting from the end)\n" +
" Type index(int index);\n" +
"}";

export const class_separator = "\n\n";
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactgenie-dsl",
"version": "0.0.39",
"version": "0.0.40",
"description": "A natural language parser based on a large language model",
"scripts": {
"prepare": "peggy lib/dsl/parser.pegjs -o lib/dsl/parser.gen.js && tsc",
Expand Down

0 comments on commit cc71547

Please sign in to comment.