sxjeru

Results 212 comments of sxjeru

测试了一下,结果是点击后两者共存,感觉可以接受。 ![image](https://github.com/lobehub/lobe-ui/assets/20513115/3f46b5b9-a87d-46ed-81fd-a15295b3f7dd)

那至少还有下面两处 tooltip 需要显示,有无办法在不改动此处使其显示。 ![image](https://github.com/lobehub/lobe-ui/assets/20513115/d33fc09f-e73e-46d0-851c-0055e00af9fe) ![image](https://github.com/lobehub/lobe-ui/assets/20513115/1c951660-4bd9-4bdb-b0b8-ba369db9c460)

padding 已删。 如果是pc控制台切到移动端,需要刷新一下。这边拿手机测试是正常的。

移动端 tooltip 不显示的另一种解决方案。 lobehub/lobe-ui#151

部分浏览器的 setTimeout 会在后台休眠,这边 chrome 124 可以复现。 如图,16ms 的延迟在后台状态时会被延长至 1s 。 ![image](https://github.com/lobehub/lobe-chat/assets/20513115/fdb842a0-bb4d-44fb-8a4e-c5fe4c2ad4cd)

这位的意思应该就是切到后台时不会输出吧,切回来肯定是好的,会继续输出。

> 那感觉是不是使用 requestAnimationFrame 能解决? 按下面的代码测试,requestAnimationFrame 后台还是会休眠。 ```js var t = performance.now(); function fun1() { const _t = performance.now(); console.log(_t - t); t = _t; // 使用 requestAnimationFrame 模拟 setTimeout requestAnimationFrame(()...

按网上的方案,web worker 模拟可行。 ```js const workerCode = URL.createObjectURL( new Blob( [ "self.addEventListener('message', (event) => {" + "setInterval(() => {" + "self.postMessage(new Date() * 1);" + '}, 100);' + '});', ],...

#945 | #1197 考虑大模型的实时流式输出可能有很强的割裂感,所以做了缓存平滑输出。

不知是否尝试过当 api 生成完毕后一次性输出剩余内容,并且不自动下滚,体验如何。