3

ChatGPTerminator: 在终端中使用 ChatGPT

 1 year ago
source link: https://www.jdon.com/65551.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

ChatGPTerminator: 在终端中使用 ChatGPT


这个开源项目使得在您的终端中使用 openai 的 chatgpt 成为可能。

此终端界面提供了一种使用命令行界面与 ChatGPT 交互的便捷方式。


要使用此终端界面,请执行以下步骤:

  1. 将此存储库克隆到本地计算机。
  2. 使用命令行界面导航到克隆的目录。
  3. 使用以下命令创建虚拟环境:python3 -m venv venv
  4. 将 pip 要求安装到 venv 中:pip install -r requirements.txt
  5. 设置 OPENAI_API_KEY 环境变量:export OPENAI_API_KEY="PUT_API_KEY_HERE"
  6. 运行以下命令启动 ChatGPT 终端界面:python ChatGPTerminal.py
  7. 您现在可以开始聊天了。键入消息并按 Enter 键以获得响应。

点击标题


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK