From fdded1b8c336a9344a4d06f33cec130e9960aff2 Mon Sep 17 00:00:00 2001 From: zstring Date: Sat, 15 Nov 2025 11:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=AE=A2=E6=88=B7=E7=AB=AFcontext=5Fmanageme?= =?UTF-8?q?nt=E5=AD=97=E6=AE=B5=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/routes/api.js b/src/routes/api.js index 62729389..d731c5e2 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -103,6 +103,11 @@ async function handleMessagesRequest(req, res) { // 检查是否为流式请求 const isStream = req.body.stream === true + // 临时修复新版本客户端,删除context_management字段,避免报错 + if (req.body.context_management) { + delete req.body.context_management + } + logger.api( `🚀 Processing ${isStream ? 'stream' : 'non-stream'} request for key: ${req.apiKey.name}` )