From 78869c1573076971dde1f302de670d22940f1be5 Mon Sep 17 00:00:00 2001 From: Archeb Date: Tue, 9 Apr 2024 18:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8E=E8=BF=9B=E5=85=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E5=BC=8F=E7=9A=84=E9=97=A8=E6=A7=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index aa4eb3f..b871eea 100644 --- a/index.js +++ b/index.js @@ -77,7 +77,7 @@ app.post("/v1/messages", (req, res) => { userQuery = userMessage[userMessage.length - 1].question; // 试算用户消息长度 - if(encodeURIComponent(JSON.stringify(userMessage)).length > 32400) { + if(encodeURIComponent(JSON.stringify(userMessage)).length > 30000) { //太长了,需要上传 // user message to plaintext