You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://zishu.me/blog/239.html/
在开发个人项目时,写 README 文件一直是一件很头疼的事情,所幸辛苦写完了,想做个多语言版本更头疼,为了解决整个痛点,写了个 python + GPT 脚本,将这一切自动化处理了。
源码:https://github.com/dlzmoe/translate-README
在根目录下新建俩文件
.env
和translate_md.py
:个人是比较喜欢
gpt-4o-mini
这个模型,功能足够覆盖我日常使用,生成速度快,对 token 的消耗也比较低,作图生文、理解性也都是前排水平。文件创建完成后安装一下依赖:
直接运行即可:
https://zishu.me/blog/239.html/
Beta Was this translation helpful? Give feedback.
All reactions