gpt translator
1.0.0
Translate markdown files using OpenAI's GPT-4 model.
git clone https://github.com/daqing/gpt-translator.gitOPENAI_API_KEY environment variableexport OPENAI_API_KEY='sk-zPByWXXXXXXXXXXXXXXXXXXXXXXX'main.py
python main.py --base-lang en --target-lang zh-CN --input ./demo/example.en.md --output ./example.zh-CN.mdThis will translate ./demo/example.en.md into simplified chinese and save to ./example.zh-CN.md.
Remember to set the OPENAI_API_KEY environment variable in order to use the GPT-4 model.