We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
做以下改动修复了(我不会写代码,当然是chatgpt给的解决办法哈哈)
export async function requestUsage() { const id = Date.now().toString(); // 生成随机数 const res = await requestOpenaiClient(`dashboard/billing/credit_grants?id=${id}`)( null, "GET", ); try { const response = (await res.json()) as { total_available: number; total_granted: number; total_used: number; }; return response; } catch (error) { console.error("[Request usage] ", error, res.body); } }
原方法
export async function requestUsage() { const res = await requestOpenaiClient("dashboard/billing/credit_grants")( null, "GET", ); try { const response = (await res.json()) as { total_available: number; total_granted: number; total_used: number; }; return response; } catch (error) { console.error("[Request usage] ", error, res.body); } }
The text was updated successfully, but these errors were encountered:
e5aa72a
Merge pull request #283 from Yidadaa/fix-credit-cache
c70c311
fix: #277 no cache for credit query
fix: ChatGPTNextWeb#277 no cache for credit query
560fa54
Merge pull request ChatGPTNextWeb#283 from Yidadaa/fix-credit-cache
a266bb8
Refactor [UI/UX] [Front End] [Chats] Update Locales (ChatGPTNextWeb#277)
430bc06
* Feat [UI/UX] [Locales] ShowFullChatHistory - [+] feat(locales): add ShowFullChatHistory translations for cn, en, and id locales * Refactor [UI/UX] [Front End] [Chats] Update Locales - [+] refactor(chat.tsx): update Locale.Mask.Config.HideContext to Locale.Mask.Config.ShowFullChatHistory
No branches or pull requests
做以下改动修复了(我不会写代码,当然是chatgpt给的解决办法哈哈)
原方法
The text was updated successfully, but these errors were encountered: