provider, gui: a Grok account answered 429 shows a spent Rate limit window on its card until the limit lifts (H20 on Discord) — a free Grok account read 100 left while its requests came back 429 after a short while: Grok's billing (/v1/billing?format=credits, all the CLI's /usage reads too) says nothing of a plan's rate limit, and a period's credits unused read 0% used. @magpie-community/opencode-grok-auth 0.1.7 keeps the account's last 429 and its usage puts a "Rate limit" window at 100%, aside (the gateway already rests the account), before the period's, until the reset the 429 named (Retry-After, or a *ratelimit*reset* header), or with none until a request goes through or 5 minutes pass; grok's mover min is raised to it. The built-in, which only accounts that haven't moved use, is left as it was. "Rate limit" in zh/ja/de. The plugin's new usage test fails on 0.1.6; its 20 tests pass, and against the owner's real Grok account (read-only) the plugin's usage gave the week at 0% before and the Rate limit window first after a 429 through its fetch. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass.
This commit is contained in:
@@ -1676,6 +1676,7 @@ const I18N = {
|
||||
"Month": "本月",
|
||||
"Credits": "积分",
|
||||
"On-demand": "按需用量",
|
||||
"Rate limit": "限流",
|
||||
"30 days": "30 天",
|
||||
"All": "全部",
|
||||
"effective prices": "生效价格",
|
||||
@@ -5017,6 +5018,7 @@ const I18N = {
|
||||
"Month": "今月",
|
||||
"Credits": "クレジット",
|
||||
"On-demand": "オンデマンド",
|
||||
"Rate limit": "レート制限",
|
||||
"30 days": "30 日",
|
||||
"All": "すべて",
|
||||
"effective prices": "適用価格",
|
||||
@@ -8336,6 +8338,7 @@ const I18N = {
|
||||
"Month": "Monat",
|
||||
"Credits": "Credits",
|
||||
"On-demand": "On-Demand",
|
||||
"Rate limit": "Rate-Limit",
|
||||
"30 days": "30 Tage",
|
||||
"All": "Alle",
|
||||
"effective prices": "effektive Preise",
|
||||
|
||||
@@ -108,7 +108,7 @@ func init() {
|
||||
// names, as the built-in does: the homes stay where they are.
|
||||
movers["grok"] = &mover{
|
||||
pkg: "@magpie-community/opencode-grok-auth",
|
||||
min: "0.1.6", // a failure's status and its sign-in mark as the built-in's; grok-4.7's reasoning levels; a token Grok refuses early reads as expired; the sign-in renewed ahead of time through auth.refresh
|
||||
min: "0.1.7", // a failure's status and its sign-in mark as the built-in's; grok-4.7's reasoning levels; a token Grok refuses early reads as expired; the sign-in renewed ahead of time through auth.refresh; a 429 shows a spent Rate limit window until it lifts
|
||||
agents: []string{"grok"},
|
||||
out: func() ([]Moving, error) {
|
||||
var out []Moving
|
||||
|
||||
Reference in New Issue
Block a user