feat: 添加每日签到功能和sitemap生成

refactor: 优化TTS配置获取逻辑并提取为独立模块
fix: 修正新用户积分初始化环境变量名称
style: 更新播客生成页面UI和文案
docs: 修改提示词模板格式和内容
build: 添加next-sitemap依赖和配置文件
This commit is contained in:
hex2077
2025-08-21 23:03:02 +08:00
parent 043b0e39f8
commit f9db0215e0
17 changed files with 447 additions and 60 deletions

View File

@@ -227,7 +227,8 @@ def _parse_arguments():
parser.add_argument("--model", default="gpt-3.5-turbo", help="OpenAI model to use (default: gpt-3.5-turbo).")
parser.add_argument("--threads", type=int, default=1, help="Number of threads to use for audio generation (default: 1).")
parser.add_argument("--output-language", type=str, default=None, help="Language for the podcast overview and script (default: Chinese).")
parser.add_argument("--usetime", type=str, default=None, help="Specific time to be mentioned in the podcast script, e.g., '今天', '昨天'.")
parser.add_argument("--usetime", type=str, default=None, help="Specific time to be mentioned in the podcast script, e.g., 10 minutes, 1 hour.")
return parser.parse_args()
def _load_configuration():

View File

@@ -19,7 +19,7 @@
**2. Output Language**
* **{{outlang}}**.
* ** Make sure the language of the output content is {{outlang}} **.
</Additional Customizations>
<INSTRUCTIONS>
@@ -96,7 +96,8 @@
- Return summary in clean markdown format
- Do not include markdown code block tags (```markdown ```)
- Use standard markdown syntax for formatting (headers, lists, etc.)
- Use ### for main headings
- Use ## for main headings
- Use ### to indicate a categorical question
- Use #### for subheadings where appropriate
- Use bullet points (- item) for lists
- Ensure proper indentation and spacing

View File

@@ -1,4 +1,4 @@
* **Output Format:** No explanatory text{{outlang}}
* **Output Format:** No explanatory textMake sure the language of the output content is {{outlang}}
* **End Format:** Before concluding, review and summarize the previous speeches, which are concise, concise, powerful and thought-provoking.
<podcast_generation_system>
@@ -57,8 +57,16 @@ You are a master podcast scriptwriter, adept at transforming diverse input conte
6. **Length & Pacing:**
* **Target Duration:** Create a transcript that would result in approximately {{usetime}} of audio (around 800-1000 words total).
* **Balanced Speaking Turns:** Aim for a natural conversational flow among speakers rather than extended monologues by one person. Prioritize the most important information from the source content.
* **Target Duration & Word Count:** Create a transcript that would result in approximately {{usetime}} of audio. Use the following word count guidelines:
* "Under 5 minutes": Aim for 800-1000 words.
* "5-10 minutes": Aim for 1000-2000 words.
* "10-15 minutes": Aim for 2000-3000 words.
* **Content Coverage Mandate:** The primary goal is to ensure that **every distinct topic, key fact, or main idea** present in the `<source_content>` is mentioned or referenced in the final transcript. No major informational point should be completely omitted.
* **Prioritization Strategy:** While all topics must be covered, you must allocate speaking time and discussion depth according to their importance.
* **Key Topics:** Dedicate more dialogue, examples, and analysis from multiple hosts to the most central and significant points from the source material. These should form the core of the conversation.
* **Secondary Topics:** Less critical information or minor details should be handled more concisely. They can be introduced as quick facts by the "Expert" host, used as transitional statements by the moderator, or briefly acknowledged without extensive discussion. This ensures they are included without disrupting the flow or consuming disproportionate time.
7. **Copy & Replacement:**
If a hyphen connects English letters and numbers or letters on both sides, replace it with a space.