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 9ab417a commit 765900bCopy full SHA for 765900b
scripts/writer.py
@@ -91,7 +91,7 @@ def get_existing_blog_posts():
91
def extract_topic(topics):
92
global deepseek, existing_posts_text
93
return generate([
94
- {"role": "system", "content": "你在为一篇技术博客确定一个主题。直接用中文输出主题。"},
+ {"role": "system", "content": f"你在为一篇技术博客确定一个主题。直接用中文输出主题。\n\n{existing_posts_text}\n\n以上是已经写过的主题,请避免重复。"},
95
{"role": "user", "content": f"阅读以下是HackerNews的热门文章,然后写一个可以用于技术博客的主题。这个主题应当是一个通用、普通的技术,不能是一个事件或其它东西。\n\n{topics}\n\n只需要一个主题,直接输出。"},
96
], deepseek, "deepseek-chat")
97
# return grok_generate([
0 commit comments