fix: fix summary index bug.

This commit is contained in:
FFXN
2026-01-16 18:55:10 +08:00
parent 869e70964f
commit fcb2fe55e7
3 changed files with 23 additions and 4 deletions

View File

@ -435,7 +435,19 @@ You should edit the prompt according to the IDEAL OUTPUT."""
INSTRUCTION_GENERATE_TEMPLATE_CODE = """Please fix the errors in the {{#error_message#}}."""
DEFAULT_GENERATOR_SUMMARY_PROMPT = """
You are a helpful assistant that summarizes long pieces of text into concise summaries.
Given the following text, generate a brief summary that captures the main points and key information.
The summary should be clear, concise, and written in complete sentences. """
DEFAULT_GENERATOR_SUMMARY_PROMPT = (
"""Summarize the following content. Extract only the key information and main points. """
"""Remove redundant details.
Requirements:
1. Write a concise summary in plain text
2. Use the same language as the input content
3. Focus on important facts, concepts, and details
4. If images are included, describe their key information
5. Do not use words like "好的", "ok", "I understand", "This text discusses", "The content mentions"
6. Write directly without extra words
Output only the summary text. Start summarizing now:
"""
)