Tastror

Results 5 comments of Tastror

Fight 的初始阶段也有这种情况 @MistEO @zzyyyl 这里一直卡了几个小时() asst.log 片段(网页链接) [asst.bak.log](https://github.com/MaaAssistantArknights/MaaAssistantArknights/files/9441098/asst.bak.log) ![](https://s2.loli.net/2022/08/29/god4P1hzWMO2iqy.png) ![](https://s2.loli.net/2022/08/29/M6PsYRhovtc9uOf.jpg)

[commit](https://github.com/MaaAssistantArknights/MaaAssistantArknights/commit/76f66976c39bef5dcb64b6bb1731274e23b3696e) 喵

@SuiYunsy Here's a workaround for this problem (comments are in Chinese) codes changed in `app/api/google.ts` from line 116 to the end. old codes are commented. ```typescript // --- 添加一个两秒的心跳,防止流式一直不出结果 ---...

vercel edge runtime 限制 stream 的第一个回复必须 < 25s,参考 [#4781](https://github.com/ChatGPTNextWeb/NextChat/issues/4781) 如果官方不回复 think 使得 think 结束超过 25s(一般因此导致),或者到生成 think 的第一个 token 超过 25s(不太可能),就会寄了 解决方法可以看看上面这个 issue 中 [SuiYunsy 的评论](https://github.com/ChatGPTNextWeb/NextChat/issues/4781#issuecomment-2143344905)中提到的另一个 issue [https://github.com/vercel/ai/issues/487#issuecomment-1847754042](https://github.com/vercel/ai/issues/487#issuecomment-1847754042)

提供一个自己写的[解决方案](https://github.com/ChatGPTNextWeb/NextChat/issues/4781#issuecomment-3405529170),不过写在 google.ts 里(我用 gemini 的时候遇到了这个问题),可以自行移动至 openai 相关代码中~