ChatGPT-Next-Web/app/components
ガオガオ 6ac26b7d4a feat:修复apikey使用额度接口缓存问题和修复setting页面针对该接口频繁调用的问题
1.为了解决缓存问题,更新了调用apikey使用额度接口的方法。由于nextjs的fetch默认会缓存同样参数的请求,需要针对fetch加入cache: 'no-store' 的参数修复以避免这一现象。(https://beta.nextjs.org/docs/data-fetching/fetching#dynamic-data-fetching)
2.为了提升用户体验,引入了usageStore,该存储库能够在有数据的情况下,优先使用缓存数据来加载apikey使用额度的信息。只有当重新检查的按钮被点击时,才会再次调用apikey使用额度接口更新usageStore数据,并且在页面上显示最新的更新数据。通过实现这种操作,我们能够避免在进入setting页面时频繁地调用apikey使用额度接口,从而进一步提升响应速度和用户体验。
2023-04-13 01:50:25 +08:00
..
button.module.scss fix: #522 resizable side bar 2023-04-10 00:54:17 +08:00
button.tsx refactor: optimize send button 2023-04-06 21:02:48 +08:00
chat-list.tsx fix: #641 delete wrong chat list 2023-04-09 23:41:16 +08:00
chat.module.scss feat: close #469 support reset session and do not send memory 2023-04-06 02:37:12 +08:00
chat.tsx Revert "fix: autoscroll conflict" 2023-04-12 19:48:12 +08:00
error.tsx fix: #397 #373 Array.prototype.at polyfill errors 2023-04-03 13:29:37 +08:00
home.module.scss feat: wider app body 2023-04-10 00:56:44 +08:00
home.tsx fixup 2023-04-11 02:56:48 +08:00
input-range.module.scss fix: 兼容不同浏览器的input range兼容 2023-04-06 12:39:31 +08:00
input-range.tsx fix: 兼容不同浏览器的input range兼容 2023-04-06 12:39:31 +08:00
markdown.tsx merge 2023-04-07 07:18:53 +08:00
settings.module.scss fix: #648 password input style 2023-04-09 23:35:45 +08:00
settings.tsx feat:修复apikey使用额度接口缓存问题和修复setting页面针对该接口频繁调用的问题 2023-04-13 01:50:25 +08:00
ui-lib.module.scss fix: #641 delete wrong chat list 2023-04-09 23:41:16 +08:00
ui-lib.tsx fix: #589 improve unauthorized tips 2023-04-09 23:51:12 +08:00
window.scss fix: header title overflow 2023-04-05 11:32:45 +00:00