mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +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) {
|
} else if (toSummaryFileContent?.content) {
|
||||||
obj.arguments[0].previousMessages.push({
|
obj.arguments[0].previousMessages.push({
|
||||||
author: 'user',
|
author: 'user',
|
||||||
description: limitString(toSummaryFileContent?.content, 50000, true),
|
description: limitString(toSummaryFileContent?.content, 20000, true),
|
||||||
contextType: 'WebPage',
|
contextType: 'WebPage',
|
||||||
messageType: 'Context',
|
messageType: 'Context',
|
||||||
sourceName: toSummaryFileContent?.name,
|
sourceName: toSummaryFileContent?.name,
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ export class EditCardTool extends AbstractTool {
|
||||||
qq = isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
|
qq = isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
|
||||||
groupId = isNaN(groupId) || !groupId ? e.group_id : parseInt(groupId.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 {
|
try {
|
||||||
let mm = await group.getMemberMap()
|
let mm = await group.getMemberMap()
|
||||||
if (!mm.has(qq)) {
|
if (!mm.has(qq)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue