ChatGPT CLI v1.7.9
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
createImageContentFromBinaryandcreateImageContentFromURLOrFilefunctions. - Code reference:
api/client/client.go.
- Refactored image content handling for more efficient operations by introducing
-
Utility Enhancements:
- Introduced a new
IsBinaryfunction for improved detection of binary data within the CLI. - Extended test coverage to ensure robustness.
- Code reference:
cmd/chatgpt/utils/utils.go.
- Introduced a new
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.
- Fixed a bug where history was modified when binary data was provided to
Other Changes:
-
Dependency Updates:
- Upgraded
golang.org/x/expandgolang.org/x/sysmodules to newer versions. - Code references:
go.mod,go.sum.
- Upgraded
-
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:
Alternatively, you can directly download the binaries specific to your operating system from the official repository.
brew upgrade chatgpt-cli