- Added a warning when the language model is not explicitly specified. The default is GPT 3.5, but this is no longer a good option today. In the future, this setting will be required.
- Added
REASONING_EFFORTconfig option for reasoning models.
- Supported
-t defaultorTEMPERATURE=defaultfor models that do not support setting the temperature parameter. Currently, some reasoning models such aso3-minithrow an error when temperature is specified. - The shorthand model name
4now points togpt-4oinstead ofgpt-4-turbo. However, shorthand model names are now deprecated. Specify full chat model names instead.
- Fixed broken module import that made the CLI not functioning at all
- GPT-4 Turbo has entered general availability, so the model shorthand
4now points togpt-4-turboinstead ofgpt-4.gpt-4-turbois faster, smarter, and more cost-effective; there is almost no practical reason to choosegpt-4now.
- You can now specify more than one file to translate multiple source files sequentially (#20).
- Added
OVERWRITE_POLICY(-w/--overwrite-policy) option, which allows you to specify what happens if the output file already exists (#20). - When one of the API calls causes a critical error, the other API calls are now aborted as well.
- Fixed an error where the translation status was still reported in a non-TTY environment.
- Fixed an issue that occurred when the status text was longer than the terminal width.
- Fixed error handling when checking if the output file is writable.
- Hid a deprecated and undocumented CLI option from
--help.
- Added
OUTPUT_FILE_PATHoption, which can flexibly transform the input file path into the output file path. - Deprecated
OUT_SUFFIXoption in favor ofOUTPUT_FILE_PATH. - Enhanced error reporting to be friendlier when a file system error occurs.
- Checks the permission of the output file/directory before actually calling the API (#17).
- Fixed:
outCLI option is now relative to BASE_DIR rather than the target file, following standard convention of other CLI tools (#16).
- Fixed a typo in config name
API_ENDOPOINT=>API_ENDPOINT(#15)
- Fixed help message.
- Fixed a bug where some config values could not be set to zero.
- Added
-q/--quietCLI option. - The tool now suppresses progress output by default when not in TTY.
- Added
API_ENDPOINTconfig option.
- Added
CODE_BLOCK_PRESERVATION_LINESconfig option. - Added
OUT_SUFFIXconfig option. - Added
outCLI option.
- Removed unnecessary dependencies.
- Critical fix for 'bin' executables.
This is the first version released on NPM. It's now published as a standalone CLI tool that can be installed with npm install -g.
BREAKING
- Renamed the package/repository name from 'markdown-gpt-translator' to 'chatgpt-md-translator'.
- This tool no longer reads config data from environment variables (except for
HTTPS_PROXY). Settings must be written in the config file. - Changed a config key name from
GPT_TRANSLATOR_BASE_DIRtoBASE_DIR.
NEW
- Changed command-line parser to let you write options like
-m3or--model=3instead of-m 3(old style will work, too). - Added support for indented code blocks (#7).
- Added the temperature option.
- Added the API call interval option.
- Added HTTPS Proxy support (via
HTTPS_PROXYin.env)