ChatGPT CLI v1.8.1
New Features:
-
Transcription Support:
- Introduced the
--transcribeflag to generate transcripts from audio files. - Supports a variety of audio formats, including
.mp3,.mp4,.mpeg,.mpga,.m4a,.wav, and.webm. - API endpoint used:
/v1/audio/transcriptions. - Appropriate CLI usage will allow users to extract text content from audio files.
- Introduced the
-
Text-to-Speech Support:
- Added the
--speakand--outputflags for converting text into speech with TTS modelgpt-4o-mini-tts. - Output can be played back directly if
afplayis installed (macOS), enhancing accessibility. - API endpoint used:
/v1/audio/speech.
- Added the
Improvements:
-
Expanded CLI Capabilities:
- The command-line interface now supports more flexible configuration options using a layered system (default values,
config.yaml, environment variables). - Enhanced debug options for better visibility into API interactions.
- The command-line interface now supports more flexible configuration options using a layered system (default values,
-
Model Capabilities:
- Introduction of a
getCapabilities()method to dynamically determine model features such as support for temperature and TTS capabilities.
- Introduction of a
-
Modular Endpoints:
- API paths are now more customizable with additions for specific model types, improving integration flexibility.
Bug Fixes:
- Addressed issues in API endpoint selection logic which previously led to incorrect routing.
- Fixed condition checks related to the
new-threadflag for the command-line interface.
Other Changes:
- Added significant refactoring in the codebase for better readability and maintainability of various modules, including the
client,api, andcmdpackages. - New mock interfaces and test enhancements using
gomockfor robust unit testing and improved CI/CD performance.
Upgrade Notes:
- Update Methods:
- Homebrew Users: Run
brew upgrade chatgpt-clito get the latest update. - Direct Download: You may download available binaries specific to your OS directly from the repository or website.
- Homebrew Users: Run
- Configuration Modification:
- Ensure to update your
config.yamlto leverage new features and flags introduced in this release.
- Ensure to update your