在 Linux 中用自然语言执行命令!
pip install openai
- 把
gpt.py
的代码复制到任意位置的gpt
中 - 编辑
.bashrc
或.profile
文件, 加入export PATH="$PATH:<脚本所在目录>"
- 应用更改
source ~/.bashrc
chmod +X /path/to/gpt
如果你使用免费版本,那么请把模型改为 gpt-3.5-turbo
gpt write a hello world py cpp and run it
在 Linux 中用自然语言执行命令!
pip install openai
gpt.py
的代码复制到任意位置的 gpt
中.bashrc
或 .profile
文件, 加入 export PATH="$PATH:<脚本所在目录>"
source ~/.bashrc
chmod +X /path/to/gpt
如果你使用免费版本,那么请把模型改为 gpt-3.5-turbo
gpt write a hello world py cpp and run it