Skip to content

ChatGPT CLI v1.5.0

Choose a tag to compare

@kardolus kardolus released this 21 Mar 14:27
· 387 commits to main since this release

This release introduces significant updates including bug fixes, a breaking change for better API payload handling, and a new feature to improve context management and max token management. Additionally, it includes a migration strategy for existing configurations to smoothly transition to the new context window setting.

What's New

  • New Feature: Introduced context_window to limit the size of the context. This replaces the previous max_tokens setting for context management, offering more precise control over the memory footprint of conversations (PR #).

  • Configuration Migration: For users migrating from an older version, config.yaml now automatically updates to use context_window. If context_window is not set, it defaults to the value of max_tokens, and max_tokens is reset to 4096. This ensures a seamless transition while encouraging users to leverage the new context management feature (PR #).

Bug Fixes

  • --list-threads No Longer Requires API Key: Fixed a bug where the --list-threads command unnecessarily required an API key, streamlining the process for listing threads without additional authentication (PR #).

  • API Payload Handling (Breaking Change): The --max-tokens setting now correctly applies to the payload of the outgoing API call instead of the size of the context. This change may affect existing workflows that rely on the old behavior. Users are encouraged to review their usage and adjust accordingly

Under the Hood

  • Refined the README.md formatting for better readability, including updates to the Configuration and Development sections.
  • Adjusted client behavior to align with the new context_window and max_tokens logic, ensuring consistency across API calls.
  • Updated testing suites to cover the new features and bug fixes, reinforcing the reliability of the release.

How to Update

Using Homebrew (macOS)

brew upgrade chatgpt-cli

Direct Download

For a quick and easy installation without compiling, you can directly download the pre-built binary for your operating
system and architecture.