Skip to content

ChatGPT CLI v1.7.2

Choose a tag to compare

@kardolus kardolus released this 10 Oct 16:35
· 306 commits to main since this release

New Features

  • New --new-thread Flag: Added the --new-thread flag to generate a new thread with a random name and automatically target it. This feature is particularly useful when using prompt files, allowing users to start fresh without the sticky history of previous interactions. It ensures that follow-up questions are isolated to the new thread.
  • Conflict Prevention for Thread Flags: Improved user experience by disallowing the simultaneous use of --new-thread with --thread or --set-thread flags. This ensures clarity in thread targeting, avoiding unexpected behavior when specifying a new thread and targeting another thread concurrently.

Enhancements

  • Code Refactoring: Removed redundant generateUniqueSlug function from the client and centralized the logic in utils.GenerateUniqueSlug, improving code maintainability.
  • Enhanced Integration Tests: Added integration tests to ensure proper validation of flag usage, particularly checking for conflicts between --new-thread, --thread, and --set-thread flags.

Integration Test Additions

  • Added tests to ensure the CLI throws an error when:
    • --new-thread is used with --set-thread.
    • --new-thread is used with --thread.
  • These tests ensure that the command-line interface behaves as expected when conflicting flags are provided.

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.