ChatGPT CLI v1.7.8
New Features:
- Image Support:
- Added the ability to upload images or provide image URLs using the
--imageflag. This feature enhances user interaction by allowing visual content to be processed in queries. - Note: Image support is model-dependent and may not be available for all models.
- Code references:
api/client/client.go,cmd/chatgpt/main.go
- Added the ability to upload images or provide image URLs using the
Improvements:
-
CLI Enhancements:
- Updated the Makefile to provide better guidance on available commands for testing, building, and deployment.
- Improved context customization options through the configuration system.
- Code reference:
README.md,cmd/chatgpt/main.go,Makefile
-
Performance Optimizations:
- Refactored token counting functions and added better support for handling different data types within message content.
- Code references:
api/client/client.go,api/completions.go
Bug Fixes:
- Content Handling Fixes:
- Corrected type assertions for message content to prevent runtime errors when handling JSON responses.
- Code references:
api/client/client.go,history/manager.go
Other Changes:
-
Testing and Documentation Updates:
- Updated unit tests to cover new image support capabilities using mocks.
- Documentation refreshed to include instructions for using new image functionalities.
- Code references:
api/client/client_test.go,docs/chatgpt_api.md
-
Dependency Updates:
- Updated several Go module dependencies for enhanced stability and performance.
- Code references:
go.mod,go.sum
Upgrade Notes:
To upgrade to version v1.7.8, you can use one of the following options:
- Homebrew: Run
brew upgrade chatgpt-cliif you installed via Homebrew. - Direct Download: Download the binaries directly from the GitHub releases page to match your operating system specifications.