Gemini CLI: Accurate Model Token Limits and Long-Request Timeouts

Gemini CLIView original changelog

Gemini CLI v0.70.0 makes the models list report accurate output token limits. It also deduplicates options and initializes auth capabilities before listing. The HTTP client now scales its body timeout when a configured request timeout exceeds the 300-second default, so long-running requests are no longer cut off early.

Key Takeaways

  • Output token limits shown in the models list are now accurate, so users can pick a model with correct information.
  • The models list deduplicates options and initializes auth capabilities first, so it reflects what the current login can use.
  • The HTTP body timeout scales automatically when a request timeout exceeds the 300-second default.
  • Long-running requests are no longer cut off at 300 seconds when users have configured a longer limit.
  • Foreground retry status is scoped to the active prompt and current model policy, which avoids misleading retry messages.
  • The fixes build on the models command and --list-models flag introduced in v0.67.0.

Overview

Gemini CLI v0.70.0 improves two areas. One is how the CLI lists models. The other is how it handles requests that run for a long time.

A more trustworthy models list

The models listing, which v0.67.0 introduced as the models command and --list-models flag, now reports correct output token limits for each model. The CLI also deduplicates options and initializes authentication capabilities before it builds the list. Users therefore see only the models their current auth supports, without repeated entries.

Timeouts that match configuration

The underlying HTTP client previously stopped waiting after a default body timeout of 300 seconds, even if a user had set a longer request timeout. Gemini CLI now scales the body timeout to match when the request timeout is larger. Long-running requests, such as large generations, can finish instead of being cut off partway through.

Retry status scoping

Foreground retry status is now scoped to the active main prompt and the current model policy. Retry messages no longer carry over from an unrelated prompt or model.

Gemini CLI v0.70: Model Token Limits and Timeouts | Yet Another Changelog