We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0afb0 commit 9efaa29Copy full SHA for 9efaa29
pages/api/ai-title.ts
@@ -23,13 +23,9 @@ const api = async (req: NextApiRequest, res: NextApiResponse) => {
23
return res.status(403).send({});
24
}
25
26
- const instruction = `Generate enganging blog post title, with a maximum of ${
+ const instruction = `Come up with a better title for my blog post that has the working title "${title}". It should not be more than ${
27
nrOfCharacters || 60
28
- } characters.
29
-
30
- The topic of the blog post is: ${title}.
31
32
- Desired format: just a string, e.g. "My first blog post"`;
+ } characters in total. The desired format should be just a string, e.g. "My first blog post"`;
33
34
const choices = await OpenAiService.getCompletion(instruction);
35
0 commit comments