删掉预设提示词

This commit is contained in:
xiaobao
2025-09-17 14:27:17 +08:00
parent fc6bbb4bb1
commit f96e15703f

View File

@@ -147,7 +147,7 @@ app.post("/analyze", upload.single("file"), async (req, res) => {
{
role: "system",
content:
"你是一名新能源项目的图像分析专家,只需给出结论与建议,禁止输出任何数学推导、公式或 LaTeX 代码。",
"",
},
{
role: "user",
@@ -191,11 +191,13 @@ app.post("/analyze", upload.single("file"), async (req, res) => {
messages: [
{
role: "system",
content: "你是一名新能源项目的图像分析AI分析师。",
content:""
// content: "你是一名新能源项目的图像分析AI分析师。",
},
{
role: "user",
content: `请基于以下场景分析结果提供部署建议或优化意见:\n${sceneText}`,
content: `${sceneText}`,
// content: `请基于以下场景分析结果提供部署建议或优化意见:\n${sceneText}`,
},
],
});