Skip to content

ChatGPT CLI v1.7.9

Choose a tag to compare

@kardolus kardolus released this 04 Jan 21:31
· 204 commits to main since this release

New Features:

  • Binary Data Handling:
    • Enhanced support for binary data input in the CLI. Input can now be piped as binary data, and the application will handle it appropriately.
    • Code references: api/client/client.go, cmd/chatgpt/main.go.

Improvements:

  • Image Handling Refactoring:

    • Refactored image content handling for more efficient operations by introducing createImageContentFromBinary and createImageContentFromURLOrFile functions.
    • Code reference: api/client/client.go.
  • Utility Enhancements:

    • Introduced a new IsBinary function for improved detection of binary data within the CLI.
    • Extended test coverage to ensure robustness.
    • Code reference: cmd/chatgpt/utils/utils.go.

Bug Fixes:

  • History Management:
    • Fixed a bug where history was modified when binary data was provided to ProvideContext, ensuring history remains unchanged in this scenario.
    • Code reference: api/client/client_test.go.

Other Changes:

  • Dependency Updates:

    • Upgraded golang.org/x/exp and golang.org/x/sys modules to newer versions.
    • Code references: go.mod, go.sum.
  • Testing and Linting Enhancements:

    • Added checks to flag TODOs within the codebase as errors, encouraging cleaner code practices.
    • Code reference: scripts/all-tests.sh.

Upgrade Notes:

  • To upgrade to this version, you can use the command:
    brew upgrade chatgpt-cli
    
    Alternatively, you can directly download the binaries specific to your operating system from the official repository.