i-code v0.1.3 #2
xucux
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[0.1.3] - 2026-08-04
新增
grok-build余额监控方法,调用 Grok CLI 内部 chat-proxy billing 端点查询周/月额度(GET /billing?format=credits/GET /billing)xai-grok-oauth(OAuth 账号,免费档 / SuperGrok)走cli-chat-proxy.grok.com/v1/billing;API Key 回退api.x.ai健康探测(/v1/me+/v1/chat/completions),仅提供可用性状态,无法给出精确剩余额度gateway_runtime/auth_resolver.rs的 xAI Grok OAuth 解析(x-grok-client-version/xai-grok-cli等);金额字段单位统一为分,输出转换为美元字符串传输,避免浮点精度问题docs/proposals/grok-build-billing-monitoring.md变更
build_balance_http_client()统一构造额度查询 HTTP 客户端,复用应用全局代理配置(shared::apply_global_proxy,对齐docs/proxy.md);全部 12 个内置 balance provider(DeepSeek、Codex、Kimi、MiniMax、Grok Build、OpenRouter 等)从reqwest::Client::new()切换为统一构造,全局代理未启用时按规范强制直连(不读系统环境变量代理),连接超时 10s、总超时 30screditUsagePercent/credit_usage_percent、currentPeriod/current_period、productUsage/product_usage、monthlyLimit/monthly_limit等);新增「月度用量百分比」指标(used / monthlyLimit × 100,仅额度上限 > 0 时输出)grok-usage→grok-usage-thirdparty),与官方 Grok Build 订阅监控区分synthetic(测试数据)选项不再展示This discussion was created from the release i-code v0.1.3.
All reactions