降低进入文件模式的门槛

This commit is contained in:
Archeb
2024-04-09 18:52:52 +08:00
parent 93f7cde9b7
commit 78869c1573
+1 -1
View File
@@ -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