Skip to content

Commit

Permalink
fix: 减少必应接受的context长度不然爆炸
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Oct 19, 2023
1 parent 74626e6 commit b1e3fb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/SydneyAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export default class SydneyAIClient {
} else if (toSummaryFileContent?.content) {
obj.arguments[0].previousMessages.push({
author: 'user',
description: limitString(toSummaryFileContent?.content, 50000, true),
description: limitString(toSummaryFileContent?.content, 20000, true),
contextType: 'WebPage',
messageType: 'Context',
sourceName: toSummaryFileContent?.name,
Expand Down
2 changes: 1 addition & 1 deletion utils/tools/EditCardTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class EditCardTool extends AbstractTool {
qq = isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
groupId = isNaN(groupId) || !groupId ? e.group_id : parseInt(groupId.trim())

let group = await e.bot.pickGroup(groupId)
let group = await e.bot.(groupId)
try {
let mm = await group.getMemberMap()
if (!mm.has(qq)) {
Expand Down

0 comments on commit b1e3fb7

Please sign in to comment.