更新grok

This commit is contained in:
2026-07-13 21:08:30 +08:00
parent 0822628bfc
commit 86658e98a1
6 changed files with 414 additions and 12 deletions
+3 -1
View File
@@ -448,7 +448,9 @@ func mapStatus(path string, status int, raw []byte) error {
case status == 403 && isBotChallenge(string(raw)):
// grok bot-detection or a Cloudflare challenge page ("Just a moment…"),
// NOT a dead token — transient, so a good account isn't killed by an
// IP/anti-bot hiccup.
// IP/anti-bot hiccup. A statsig anti-bot rejection means the recipe likely
// went stale on a reship; kick the headless refresher to re-capture.
TriggerStatsigRefresh()
return fmt.Errorf("%w: %s 403 %s", ErrTemporaryUpstream, path, clip(raw, 160))
case status == 401 || status == 403:
return fmt.Errorf("%w: %s %d %s", ErrAuth, path, status, clip(raw, 160))