diff --git a/changelog.md b/changelog.md index eb8290c38db509cd5167300fef665019c826b8b8..27c32a2480e6c933d04c57cd4357977dff57162d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## 1.1.4(2023-06-13) +- 更新 当内容长度超过800再执行总结 ## 1.1.3(2023-06-12) - 修复 流式响应模式 响应包含`insufficientScore`时客户端未显示广告位的问题 ## 1.1.2(2023-06-12) diff --git a/package.json b/package.json index 0937ca41e9967a5343a8e4dd7c8d012d82042a0a..878b65a4b7c97de4de70b7c9d0ef51fb15b60a92 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "id": "uni-ai-chat", "name": "uni-ai-chat", - "version": "1.1.3", + "version": "1.1.4", "description": "基于uni-ai的聊天示例项目,支持流式、支持前文总结,云端一体", "main": "main.js", "scripts": { diff --git a/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js b/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js index 551164d3aa45eb804ca06ccf7ad84c4de5c6657c..10723cfe5e44d23e225c7c9712bf752b506788cd 100644 --- a/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js +++ b/uniCloud-aliyun/cloudfunctions/uni-ai-chat/index.obj.js @@ -228,7 +228,7 @@ module.exports = { // 判断是否需要总结,如果需要就开始总结 // 计算消息总长度,判断是否需要总结 - let needSummarize = messages.map(i => i.content).join('').length > 50, + let needSummarize = messages.map(i => i.content).join('').length > 800, // 总结的内容默认为 false 表示没有内容或者暂未拿到 summarizeData = false, //成功拿到总结内容的回调函数列表