Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上下文太长的时候发送回答在 mobile 上会卡顿 #242

Open
allentofight opened this issue Jun 18, 2023 · 1 comment
Open

上下文太长的时候发送回答在 mobile 上会卡顿 #242

allentofight opened this issue Jun 18, 2023 · 1 comment

Comments

@allentofight
Copy link

升级到 16k 后,上下文确实长了,但如果上下文过长再问的话要卡顿挺久(可能在3~5s)才能发出问题

setStore("messageList", k => [
          ...k,
          {
            role: "user",
            content: inputValue
          }
        ])
        if (store.remainingToken < 0) {
          throw new Error(
            store.sessionSettings.continuousDialogue
              ? "本次对话过长,请清除之前部分对话或者缩短当前提问。"
              : "当前提问太长了,请缩短。"
          )
        }
        setStore("loading", true)
        controller = new AbortController()
        // 在关闭连续对话时,有效上下文只包含了锁定的对话。
        await fetchGPT(

测试发现在 await fetchGPT 前的 setStore("messageList" 卡顿过长时间

@ourongxing
Copy link
Owner

不好解决,这是 <textarea> 的问题,你可以试试其他的 chatgpt 网站,用手机粘贴大量内容都会卡顿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants