From 3dea3243c4dd0ee40cd37881fe9e80968802b24d Mon Sep 17 00:00:00 2001 From: kicer Date: Sat, 5 Sep 2026 17:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=B6=88=E6=81=AF=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/routes/messages.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/server/routes/messages.js b/app/server/routes/messages.js index 9b4a62e..74c92ad 100644 --- a/app/server/routes/messages.js +++ b/app/server/routes/messages.js @@ -36,10 +36,7 @@ function composeWithAttachments(content, attachments) { } router.post('/:id/messages', wrap((req, res) => { - const content = composeWithAttachments( - String((req.body && req.body.content) || '').trim(), - req.body && req.body.attachments - ); + const content = String((req.body && req.body.content) || '').trim(); if (!content) return res.status(400).json({ error: 'content 不能为空' }); // deepThink:是否启用模型该「深度思考」参数(thinking_params 合并进上游请求体) const deepThink = !!(req.body && req.body.deepThink);