一个基于 ChatGPT 的多语言词典
A multilingual dictionary based on ChatGPT
下载 release 里的软件
去 OpenAI 官网申请 API Key
注意,你的OpenAI的API账户里应有余额。即此软件不是免费的,但不是给我钱而是给OpenAI。
添加OPENAI_API_KEY
到环境变量
setx OPENAI_API_KEY "your-api-key-here"
编辑 ~/.bash_profile
或者 ~/.zshrc
文件
在文件的最下方新增一行
export OPENAI_API_KEY='your-api-key-here'
输入命令source ~/.bash_profile
或 source ~/.zshrc
来更新