Skip to content

ChatGPT CLI v1.8.0

Choose a tag to compare

@kardolus kardolus released this 15 Apr 20:15
· 172 commits to main since this release

New Features:

  • Audio Support Added:
    Support for audio files has been introduced using the --audio flag. This allows users to ask questions about spoken content via audio-capable models such as gpt-4o-audio-preview. Currently supports .mp3 and .wav formats.
    Code reference: README.md, api/client/client.go

Improvements:

  • Refactoring for File Operations:
    • The ImageReader type has been generalized to FileReader, 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
  • Response Handling Enhanced:
    • Improved sorting for model listings to ensure alphabetical order.
    • Updated logging to use go.uber.org/zap for 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

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
  • Documentation Updates:
    • Expanded command examples for new features and general usage.
      Code reference: docs/chatgpt_api.md
  • Dependencies Updated:
    • go.uber.org/zap updated 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.