mirror of
https://github.com/openai/skills.git
synced 2026-09-11 19:47:26 +03:00
Update playwright-interactive examples for original image detail (#261)
Ensure that as https://github.com/openai/codex/pull/14175 rolls out, this skill will take advantage of it (adding the arg before the change rolls out is a no-op, so this is safe to add now).
This commit is contained in:
@@ -365,6 +365,7 @@ var emitJpeg = async function (bytes) {
|
||||
await codex.emitImage({
|
||||
bytes,
|
||||
mimeType: "image/jpeg",
|
||||
detail: "original",
|
||||
});
|
||||
};
|
||||
|
||||
@@ -559,6 +560,7 @@ Web desktop raw emit:
|
||||
await codex.emitImage({
|
||||
bytes: await page.screenshot({ type: "jpeg", quality: 85 }),
|
||||
mimeType: "image/jpeg",
|
||||
detail: "original",
|
||||
});
|
||||
```
|
||||
|
||||
@@ -568,6 +570,7 @@ Electron raw emit:
|
||||
await codex.emitImage({
|
||||
bytes: await appWindow.screenshot({ type: "jpeg", quality: 85 }),
|
||||
mimeType: "image/jpeg",
|
||||
detail: "original",
|
||||
});
|
||||
```
|
||||
|
||||
@@ -577,6 +580,7 @@ Mobile raw emit after the mobile web context is already running:
|
||||
await codex.emitImage({
|
||||
bytes: await mobilePage.screenshot({ type: "jpeg", quality: 85 }),
|
||||
mimeType: "image/jpeg",
|
||||
detail: "original",
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user