Skip to content

Commit

Permalink
Adjusts the prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhariri committed Oct 16, 2024
1 parent cb42994 commit d47b6c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion service/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ def create_post(title: str, content: str, tags: list[str] | None = None, descrip
},
{
"role": "user",
"content": f"Generate a short description for the following blog post content:\n\n<content>\n{content}\n</content>. Do not write anything else other than the description."
"content": f"""Generate a short description for the following blog post content:
<content>
{content}
</content>. For example: 'Quick notes on my interview on the Hard Part Interview podcast.' or 'I made a thing that converts your pocket saves into an rss feed'
Do not write anything else other than the description and do not wrap the description in quotes."""
}
],
model="gpt-4o-mini",
Expand Down

0 comments on commit d47b6c9

Please sign in to comment.