Skip to content

gproxy v3.0.11

Choose a tag to compare

@github-actions github-actions released this 10 Sep 15:55
· 46 commits to main since this release

v3.0.11

Add unified upstream quota and balance queries, optional query credentials, and OpenCode Console wallet support.

English

Added

  • Every credential now has an upstream quota entry point, with distinct balance, budget, subscription-window, rate-limit, and historical-cost views. DeepSeek accounts show per-currency balances and granted/top-up components using the existing API key, including correct handling of a base URL ending in /v1 (#231).
  • Add quota queries for Moonshot, Kimi Code, OpenRouter, Vercel balances, Cline login credentials, OpenCode Go, and explicitly configured SiliconFlow custom endpoints. OpenCode Console wallet and monthly budget queries use a separate auth cookie and workspace ID; billing-page scripts are parsed without execution.
  • Add optional, separately editable quota-query authorization to credentials. Management queries cover OpenRouter account credits, OpenAI/Claude cost reports, xAI prepaid balances and postpaid budgets, Alibaba Cloud account balances, Cloudflare AI Gateway credits, and AWS/Google/Azure service limits. Required account/project/region fields and permission gaps are shown explicitly; management limits are not presented as wallet balances.
  • Persist each query source independently and read saved values through GET /admin/api/credentials/{id}/quota. Paginated queries are collected completely before replacing a snapshot. OpenAI and Claude rate-limit headers update observations during ordinary traffic.

Fixed

  • Failed quota refreshes retain the last successful values and reset credits. Refresh errors and upstream-reported insufficient balance do not revoke credentials or change inference routing.
  • Prevent stale quota results from overwriting snapshots after credential or provider changes. Editing query authorization preserves the inference secret and existing health state; OAuth token rotation preserves query configuration.
  • Current subscription observations take precedence over historical cycle values, and unknown fields are no longer filled from a different or older cycle.

Changed

  • Opening a quota panel reads its saved snapshot first and refreshes eligible stale sources. Management lists and cost reports are manual-only; active balance/subscription queries retain caching, concurrency limits, and retry backoff.
  • Vercel's paid /v1/report endpoint and AWS Cost Explorer are not called by quota refresh. Vercel balance queries continue to use /v1/credits.
  • This release adds quota snapshot storage through the normal schema migration. Native and edge hosts share the same query contract.

Removed

  • Remove the built-in Groq channel. Existing provider records are retained but the removed channel can no longer execute requests; its unavailable quota metadata does not prevent the credential list from loading. If Groq access is still needed, reconfigure it through an appropriate supported gateway or custom provider.

简体中文

新增

  • 所有凭证统一提供上游额度入口,分别展示余额、消费预算、订阅周期、速率限制和历史费用。DeepSeek 使用现有 API Key 查询账户余额,按币种展示总余额、赠送余额和充值余额,并正确处理以 /v1 结尾的地址(#231)。
  • 接入 Moonshot、Kimi Code、OpenRouter、Vercel 余额、Cline 登录凭证、OpenCode Go,以及明确配置为 SiliconFlow 的 custom 上游。OpenCode Console 钱包与月限额使用独立 auth Cookie 和工作区 ID,读取账单页面数据而不执行页面脚本。
  • 凭证新增可独立编辑的“额度查询授权”。支持 OpenRouter 账户点数、OpenAI/Claude 费用报告、xAI 预付余额和后付预算、阿里云账户余额、Cloudflare AI Gateway 点数,以及 AWS/Google/Azure 服务限额。按渠道展示必要的账户、项目、区域和权限信息,不把服务限额当作钱包余额。
  • 各查询来源独立持久化,新增 GET /admin/api/credentials/{id}/quota 读取已有快照。分页查询完整取得结果后才替换快照;OpenAI、Claude 的普通请求响应头可持续更新限流观测。

修复

  • 额度刷新失败时保留上次成功结果和重置次数。查询失败或上游明确报告余额不足,均不会自动撤销凭证或改变推理路由。
  • 更换凭证或修改 provider 后,旧请求不能覆盖新快照。仅修改查询授权时保留推理密钥和健康状态,OAuth 轮转也会保留查询配置。
  • 当前订阅观测优先于历史周期数据,未知字段不再从其他或过期周期中补值。

调整

  • 打开额度面板先读取已有快照,再刷新允许自动查询且已过期的来源。管理限额和费用报告仅手动刷新;活跃余额、订阅查询继续使用缓存、并发限制和失败退避。
  • 额度刷新不会调用收费的 Vercel /v1/report 或 AWS Cost Explorer;Vercel 余额仍使用 /v1/credits
  • 通过正常数据库迁移新增额度快照存储;原生与 edge 使用相同查询契约。

移除

  • 移除 Groq 内置渠道。已有 provider 记录保留,但该渠道不再执行请求;其额度不可用状态不会导致整个凭证列表加载失败。如仍需访问 Groq,请改用适合的受支持网关或 custom provider 配置。