mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-05 23:07:51 +08:00
optimize
This commit is contained in:
@@ -1,27 +1,26 @@
|
|||||||
SUMMARY_SYSTEM_PROMPT = (
|
SUMMARY_SYSTEM_PROMPT = (
|
||||||
"You are a backend engine that must return strict JSON only. "
|
"你是一个后端引擎,必须仅返回严格的 JSON。"
|
||||||
"Do not include markdown, explanation, or extra keys."
|
"不要包含 markdown、解释或额外字段。"
|
||||||
)
|
)
|
||||||
|
|
||||||
SUMMARY_USER_PROMPT_TEMPLATE = """
|
SUMMARY_USER_PROMPT_TEMPLATE = """
|
||||||
You are a professional cross-platform news editor.
|
你是一名专业的跨平台新闻编辑。
|
||||||
Based on the following headlines about the same event from different platforms,
|
根据以下来自不同平台的同一事件标题,请返回:
|
||||||
return:
|
1)一个中立的统一标题
|
||||||
1) a neutral unified title
|
2)一份跨平台综合摘要
|
||||||
2) a cross-platform comprehensive summary
|
3)主题标签
|
||||||
3) topic tags
|
|
||||||
|
|
||||||
Rules:
|
规则:
|
||||||
1. Return strict JSON with exactly these keys:
|
1. 返回严格的 JSON,且仅包含以下字段:
|
||||||
- "unified_title": string
|
- "unified_title": 字符串
|
||||||
- "ai_comprehensive_summary": string
|
- "ai_comprehensive_summary": 字符串
|
||||||
- "topic_keywords": array of 3 to 8 objects
|
- "topic_keywords": 3 到 8 个对象的数组
|
||||||
2. Each item in "topic_keywords" must be:
|
2. "topic_keywords" 中每个元素必须为:
|
||||||
{{"keyword": string, "relevance_score": number}}
|
{{"keyword": 字符串, "relevance_score": 数字}}
|
||||||
3. relevance_score must be in [0, 100].
|
3. relevance_score 必须在 [0, 100] 范围内。
|
||||||
4. keyword should be concise (max 12 chars preferred).
|
4. keyword 应简洁(建议最多 12 个字符)。
|
||||||
5. The language should follow the dominant language in the input.
|
5. 输出语言应与输入中的主要语言一致。
|
||||||
|
|
||||||
Cross-platform headline data:
|
跨平台标题数据:
|
||||||
{platform_data_text}
|
{platform_data_text}
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ from app.utils.email_utils import send_html_email
|
|||||||
|
|
||||||
logger = logging.getLogger("delivery_service")
|
logger = logging.getLogger("delivery_service")
|
||||||
|
|
||||||
# delivery_service 日志单独写文件,不再输出到控制台
|
# delivery_service 日志单独写文件
|
||||||
_delivery_log_dir = Path(__file__).resolve().parents[2] / "logs"
|
_delivery_log_dir = Path(__file__).resolve().parents[2] / "logs"
|
||||||
_delivery_log_dir.mkdir(parents=True, exist_ok=True)
|
_delivery_log_dir.mkdir(parents=True, exist_ok=True)
|
||||||
_delivery_log_file = _delivery_log_dir / "delivery_check.log"
|
_delivery_log_file = _delivery_log_dir / "delivery_check.log"
|
||||||
|
|||||||
@@ -336,7 +336,6 @@ onUnmounted(() => {
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
/* 增加悬浮透视感 */
|
|
||||||
background: rgba(255, 255, 255, 0.02);
|
background: rgba(255, 255, 255, 0.02);
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
border-radius: var(--radius-xl);
|
border-radius: var(--radius-xl);
|
||||||
|
|||||||
Reference in New Issue
Block a user