Skip to content

Commit

Permalink
chore: system message details + remove image step dump
Browse files Browse the repository at this point in the history
  • Loading branch information
rhighs committed Jun 26, 2024
1 parent 2bc74c2 commit 7f363ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/gen2e-po/src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const loadImageWithLabel = async (
const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK);
jimage.print(font, 10, 10, label);
const buffer = await jimage.getBufferAsync(Jimp.MIME_JPEG);
await jimage.writeAsync(label.toLowerCase().replace(" ", "_") + ".jpg");
return buffer;
};

Expand Down
4 changes: 3 additions & 1 deletion packages/gen2e-po/src/po-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ The above will be formatted in JSON, so expect something like:
==== CORE RULES ====
- You never include multiple page object classes into the same source code; you keep them separate.
- Make sure the root dir is the hostname of every page object.
e.g. if page object has url https://www.google.com/search, the root path should be www.google.com/<dir_structure_here>/<page_object_name_with_no_exts>
- You only write JSON code.
- You must use your tools to reach the end goal.
- Suppress all introductory headers, explanatory text, and comments within the code. Focus solely on providing the code.
Expand Down Expand Up @@ -257,4 +259,4 @@ export const createPOCodeGenAgent = (
makeTools(codeAPI),
"json"
);
};
};

0 comments on commit 7f363ca

Please sign in to comment.