mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 减少必应接受的context长度不然爆炸
This commit is contained in:
parent
74626e6676
commit
b1e3fb7892
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue