Skip to content

Do not poll for usage when using API Key auth#10973

Merged
etraut-openai merged 1 commit intomainfrom
etraut/rate_limit_polling
Feb 7, 2026
Merged

Do not poll for usage when using API Key auth#10973
etraut-openai merged 1 commit intomainfrom
etraut/rate_limit_polling

Conversation

@etraut-openai
Copy link
Collaborator

@etraut-openai etraut-openai commented Feb 7, 2026

Fixes #10869

  • Gate TUI rate-limit polling on ChatGPT-auth providers only.
  • prefetch_rate_limits() now checks should_prefetch_rate_limits().
  • New gate requires:
    • config.model_provider.requires_openai_auth
    • cached auth is ChatGPT (CodexAuth::is_chatgpt_auth)
  • Prevents /wham/usage polling in API/custom-endpoint profiles.

Fixes #10869

- Gate TUI rate-limit polling on ChatGPT-auth providers only.
- `prefetch_rate_limits()` now checks `should_prefetch_rate_limits()`.
- New gate requires:
  - `config.model_provider.requires_openai_auth`
  - cached auth is ChatGPT (`CodexAuth::is_chatgpt_auth`)
- Prevents `/wham/usage` polling in API/custom-endpoint profiles.
@etraut-openai etraut-openai merged commit 3779b52 into main Feb 7, 2026
87 of 95 checks passed
@etraut-openai etraut-openai deleted the etraut/rate_limit_polling branch February 7, 2026 07:26
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Constant requests to https://chatgpt.com/backend-api/wham/usage even in API mode

2 participants