Skip to content

ChatGPT CLI v1.7.10

Latest
Compare
Choose a tag to compare
@kardolus kardolus released this 19 Jan 00:25
· 1 commit to main since this release

This release introduces significant updates to the chatgpt-cli tool with enhanced support for image handling, improvements in configurability, and numerous optimizations in both performance and usability. Below are the detailed release notes outlining the major changes.

New Features

  • Contextual Image Support:
    • Enabled the ability to handle image inputs via context, supporting both URLs and local file paths to enhance data inputs for image queries.
    • Code reference: api/client/client.go, cmd/chatgpt/main.go

Improvements

  • Query and Stream Functionality:

    • Revised the Query and Stream methods to accept context, allowing better handling of timeouts, cancellations, and scoping.
    • Code reference: api/client/client.go, cmd/chatgpt/main.go
  • Binary Data Handling Optimization:

    • Redesigned the logic for handling binary data inputs to streamline operations and prevent adding unnecessary binary data to the command history.
    • Code reference: cmd/chatgpt/utils/utils.go, cmd/chatgpt/utils/utils_test.go

Bug Fixes

  • Error Management:
    • Rectified issues with thread and history management, particularly in scenarios where specified threads do not exist or when clearing empty histories.
    • Code reference: config/store.go, cmd/chatgpt/main.go

Other Changes

  • Code Refactoring:

    • Consolidated and optimized import statements across several packages for better maintainability and performance.
    • Code reference: api/client/client_test.go, cmd/chatgpt/utils/utils.go
  • Dependency Updates:

    • Updated several Golang module dependencies to their latest versions, ensuring compatibility and leveraging improvements.
    • Code reference: go.mod, go.sum

Upgrade Notes

To upgrade to this version, you can use the following methods:

  • Homebrew: Run brew upgrade chatgpt-cli to update to the latest version.
  • Direct Download: Alternatively, download the updated binaries for your operating system directly