From f2e9b2dd2d6570dfcac6c3f97f5a893bfd586b24 Mon Sep 17 00:00:00 2001 From: wood Date: Sat, 22 Jul 2023 00:47:43 +0800 Subject: [PATCH] update --- README.md | 6 + README_EN.md | 6 + index.html | 8 +- oapi.html | 530 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 547 insertions(+), 3 deletions(-) create mode 100644 oapi.html diff --git a/README.md b/README.md index 8a34764..ffa6e73 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,12 @@ ## [English](README_EN.md) +# 7月22日更新后,需登录一次账号,F12查看sess码,使用sess码进行查询 + +7月22日更新后,已删除key校验规则,需使用sess码进行查询。使用key只能查询总额度、绑卡、GPT4和组织ID。 + +![1689957580942.png](https://cdn-img.czl.net/2023/07/22/64bab4daba587.png) + # 查询示例图 ![1688789680187.png](https://cdn-img.czl.net/2023/07/08/64a8e2b180068.png) diff --git a/README_EN.md b/README_EN.md index 9746b6f..685e076 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,6 +1,12 @@ # 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. + +![1689957580942.png](https://cdn-img.czl.net/2023/07/22/64bab4daba587.png) + # Query example image ![1688789680187.png](https://cdn-img.czl.net/2023/07/08/64a8e2b180068.png) diff --git a/index.html b/index.html index def5986..e8d2570 100644 --- a/index.html +++ b/index.html @@ -341,6 +341,8 @@

OpenAI API 信息查询

+

7月22日更新后,需使用sess码进行查询。使用key只能查询总额度、绑卡、GPT4和组织ID。

+

Oapi的余额查询

@@ -348,7 +350,7 @@

输入 API KEY

本站不保存 KEY 信息,查询后请自行保存

-

+

@@ -505,7 +507,7 @@ apiUrl = apiUrlSelect.value; } - let apiKeys = apiKeyInput.value.split(/[,\s,\n]+/).filter(key => key.startsWith("sk-")); + let apiKeys = apiKeyInput.value.split(/[,\s,\n]+/); if (apiKeys.length === 0) { alert("未匹配到 API-KEY,请检查输入内容"); @@ -532,7 +534,7 @@ row.appendChild(serialNumberCell); // 将序列号单元格添加到行中 let apiKeyCell = document.createElement("td"); - apiKeyCell.textContent = apiKey.replace(/^(sk-[a-zA-Z0-9]{4})[a-zA-Z0-9]*(.{6})$/, "$1***$2"); + apiKeyCell.textContent = apiKey; row.appendChild(apiKeyCell); console.log(data); // 添加 console.log 以查看 data 的值 diff --git a/oapi.html b/oapi.html new file mode 100644 index 0000000..eb34de6 --- /dev/null +++ b/oapi.html @@ -0,0 +1,530 @@ + + + + + + + Oapi余额查询 + + + + + +
+

Oapi余额查询

+

OPENAI的余额查询

+
+ +
+
+

输入 API KEY

+

本站不保存 KEY 信息,查询后请自行保存

+
+

+ +
+ +
+

选择查询线路

+

只支持Oapi的余额查询

+
+ +
+

+ + + + + + + + + + + + + + + + + + \ No newline at end of file