Skip to content

fix: keep proven models on quota catalog routes - #100

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/quota-catalog-routing
Sep 6, 2026
Merged

fix: keep proven models on quota catalog routes#100
caigee-cmd merged 1 commit into
mainfrom
fix/quota-catalog-routing

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Remember models an account has already served so a later WorkBuddy catalog refresh cannot drop a live ID and leave only quota-cooled empty-catalog accounts on that route.
  • Surface those cooling empty catalogs as retry hints, and report pool-wide quota cooldown as insufficient_quota instead of a generic rate limit.
  • Keep expired quota DownUntil from masking a later model rate limit, and drop a proven ID when a stream body later returns model_not_available.

Test plan

  • go test -count=1 ./internal/accounts ./internal/executor
  • CI on this PR

WorkBuddy catalog refreshes can omit a live model ID and leave only a
quota-cooled empty-catalog account on that route. Remember models an
account already served, keep those cooling accounts as retry hints, and
report pool-wide quota cooldown as insufficient_quota. Drop a proven ID
when a stream body later says the model is unavailable, and do not treat
an expired quota DownUntil as a live quota error.
@caigee-cmd
caigee-cmd merged commit 6b17019 into main Sep 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant