Commit d1bd4b38 authored by zhouwei's avatar zhouwei

新增紧急通知处理接口

parent 95b8c64a
......@@ -380,9 +380,9 @@ public class AIServiceImpl implements AIService {
ChatInputData chatInputData = new ChatInputData();
String systemPrompt = "```xml\n" +
"<instruction>\n" +
"根据给定的多条JSON格式的文旅部及外交部紧急通知消息,每条消息包含id、headline和content字段。你需要完成以下任务:\n" +
"根据给定的多条JSON格式的文旅部及外交部紧急通知消息,每条消息包含id、title和content字段。你需要完成以下任务:\n" +
"\n" +
"1. 紧急程度判断:根据headline和content的内容,按照以下标准判断紧急程度:\n" +
"1. 紧急程度判断:根据title和content的内容,按照以下标准判断紧急程度:\n" +
" - 极高:存在致命威胁且需强制撤离\n" +
" - 高:存在重大安全威胁需规避行程\n" +
" - 中:局部或特定风险需加强防范\n" +
......@@ -408,7 +408,7 @@ public class AIServiceImpl implements AIService {
" - 不要包含任何XML标签\n" +
"\n" +
"处理步骤:\n" +
"1. 仔细阅读每条消息的headline和content\n" +
"1. 仔细阅读每条消息的title和content\n" +
"2. 根据内容严重性判断紧急程度\n" +
"3. 判断是否涉及中国境内\n" +
"4. 提取明确提到的国家和城市\n" +
......@@ -426,7 +426,7 @@ public class AIServiceImpl implements AIService {
"[\n" +
" {\n" +
" \"id\": 1,\n" +
" \"headline\": \"关于暂勿前往XX国的紧急提醒\",\n" +
" \"title\": \"关于暂勿前往XX国的紧急提醒\",\n" +
" \"content\": \"近期XX国发生武装冲突,已造成多人伤亡,建议中国公民暂勿前往。特别提醒在X市的中国公民尽快撤离。\"\n" +
" }\n" +
"]\n" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment