直接从您的终端向 ChatGPT 提问!
目前有三种安装此应用的方式:homebrew
、mint
和 直接从 Github 下载
。
brew install polpielladev/homebrew-tap/chatty-cli
mint install polpielladev/chatty-cli@main
每当有新版本发布时,都会创建一个新的 Github 版本。您可以直接从发布页面下载最新版本的可执行文件。
Chatty 与 OpenAI API 通信以使用 ChatGPT 模型。请注意,您必须拥有具有可用令牌的 API 密钥(免费或按需付费)。您可以在此处查看您的可用令牌。首次使用 chatty 时,您需要使用 auth
命令为其提供 API 令牌
chatty auth
🔐 此令牌将安全地存储在 OSX 钥匙串中,并且仅在需要时读取。Chatty 仅在其执行期间知道令牌的值。
如果 chatty 已经被赋予令牌,您可以通过运行 chat 命令来开始对话
# Call chatty and use the default command (which is chat)
chatty
# Call chatty explicitly with the chat command
chatty chat