ChatGPT CLI v1.8.0
New Features:
- Audio Support Added:
Support for audio files has been introduced using the--audioflag. This allows users to ask questions about spoken content via audio-capable models such asgpt-4o-audio-preview. Currently supports.mp3and.wavformats.
Code reference:README.md,api/client/client.go
Improvements:
- Refactoring for File Operations:
- The
ImageReadertype has been generalized toFileReader, reflecting the broadened scope to include audio file handling.
Code reference:api/client/client.go,api/client/client_test.go,api/client/readermocks_test.go
- The
- Response Handling Enhanced:
- Improved sorting for model listings to ensure alphabetical order.
- Updated logging to use
go.uber.org/zapfor enhanced logging features and control over output.
Code reference:api/client/client.go,api/client/client_test.go,internal/logging.go
Bug Fixes:
- Response Conversion Handling:
- Fixed a bug where non-string API responses could cause errors.
Code reference:api/client/client.go
- Fixed a bug where non-string API responses could cause errors.
Other Changes:
- Command-Line Interface Enhancements:
- Added flags for showing debug information with
--debug. - Adjusted various CLI outputs to utilize consistent logging for clearer output.
Code reference:cmd/chatgpt/main.go
- Added flags for showing debug information with
- Documentation Updates:
- Expanded command examples for new features and general usage.
Code reference:docs/chatgpt_api.md
- Expanded command examples for new features and general usage.
- Dependencies Updated:
go.uber.org/zapupdated to v1.27.0.- Other minor updates to Go dependencies for better security and performance.
Code reference:go.mod,go.sum
Upgrade Notes:
To upgrade to this version, users can:
- Use Homebrew:
brew upgrade chatgpt-cli - Directly download the binaries for your specific OS from the release page.