Update pages/api/generate.js
Browse files- pages/api/generate.js +2 -2
pages/api/generate.js
CHANGED
|
@@ -61,13 +61,13 @@ export default async function handler(req, res) {
|
|
| 61 |
{
|
| 62 |
text: `${
|
| 63 |
prompt ? prompt + ". " : ""
|
| 64 |
-
}
|
| 65 |
},
|
| 66 |
];
|
| 67 |
console.log("Using multipart content with drawing data and prompt");
|
| 68 |
} else {
|
| 69 |
// Use text-only prompt if no drawing is provided
|
| 70 |
-
generationContent = prompt || "Convert a basic
|
| 71 |
console.log("Using text-only prompt");
|
| 72 |
}
|
| 73 |
|
|
|
|
| 61 |
{
|
| 62 |
text: `${
|
| 63 |
prompt ? prompt + ". " : ""
|
| 64 |
+
}Use the provided hand-drawing as the starting line-art, build it up to a stunning photo. Remeber to keep the original line of while adding depth and visual appeal.`,
|
| 65 |
},
|
| 66 |
];
|
| 67 |
console.log("Using multipart content with drawing data and prompt");
|
| 68 |
} else {
|
| 69 |
// Use text-only prompt if no drawing is provided
|
| 70 |
+
generationContent = prompt || "Convert a basic line into a stunning artwork.";
|
| 71 |
console.log("Using text-only prompt");
|
| 72 |
}
|
| 73 |
|