添加 Axios 以实现更稳健的 HTTP 请求。 标准化错误处理和 单元格溢出行为。 启用将所有敏感 ID 复制到剪贴板。 限制 API url 修剪。 调整复制按钮的样式。 这些更改提高了查询界面的可靠性和美观性。 axios 替代了之前 HTTP 请求的 Fetch API 来处理错误 更加优雅。 单元格内容被截断并带有工具提示以保持 布局。 新的复制按钮让用户可以轻松收集所有敏感 ID。 细微的样式调整也增强了可用性。 总体而言,查询组件现在更具弹性且用户友好。
openai-billing-query
Batch visualization query for openai (chatgpt) balance, supporting display of total amount, used amount, remaining amount, usage ratio, expiration time, GPT-4, and whether it is bound with a card.
After the update on July 22nd, you need to log in to your account once. Use F12 to view the session code and use the session code for queries.
After the update on July 22nd, the key verification rule has been removed. You need to use the session code for queries. The key can only be used to query the total amount, binding of cards, GPT4, and organization ID.
Query example image
Supports custom reverse proxy interfaces
Add your own interface code in line 361.
<option value="Reverse proxy URL">[Custom name] Custom name</option>
Reverse proxy code example
How to deploy
What? Do you still need to ask? Download index.html and open it directly. Except for the background image, there are no external resources.
Development process
First of all, thanks to several open source query codes on Github. This project was based on their projects and modified to use GPT4. I only manually modified a few css throughout the process.
Advertisement
Personal blog: https://woodchen.ink