Skip to content

Commit 9efaa29

Browse files
committed
Update ai title
1 parent 4b0afb0 commit 9efaa29

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pages/api/ai-title.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@ const api = async (req: NextApiRequest, res: NextApiResponse) => {
2323
return res.status(403).send({});
2424
}
2525

26-
const instruction = `Generate enganging blog post title, with a maximum of ${
26+
const instruction = `Come up with a better title for my blog post that has the working title "${title}". It should not be more than ${
2727
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"`;
28+
} characters in total. The desired format should be just a string, e.g. "My first blog post"`;
3329

3430
const choices = await OpenAiService.getCompletion(instruction);
3531

0 commit comments

Comments
 (0)