Skip to content

Commit

Permalink
Fix code sample for image edits
Browse files Browse the repository at this point in the history
See openai/openai-node#95; the `prompt` must be specified before the `mask`, unfortunately.

This should be obsolete soon, but may as well fix.
  • Loading branch information
rattrayalex committed Jul 10, 2023
1 parent 13eb5ed commit d9ccccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ paths:
const openai = new OpenAIApi(configuration);
const response = await openai.createImageEdit(
fs.createReadStream("otter.png"),
fs.createReadStream("mask.png"),
"A cute baby sea otter wearing a beret",
fs.createReadStream("mask.png"),
2,
"1024x1024"
);
Expand Down

0 comments on commit d9ccccf

Please sign in to comment.