diff --git a/README.md b/README.md index 3b8f0ba..f43e8ff 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,12 @@ Supports saving chat messages to a JSON file and loading them from the file. Uses the [gpt-3.5-turbo](https://platform.openai.com/docs/guides/chat/chat-completions-beta) model, which is the same model used by ChatGPT (Free Edition), as default. +### Related Projects + +[GPTerm implemented in C/C++](https://github.com/Ace-Radom/cGPTerm) by @Ace-Radom + +[gpt-term that can call POE API](https://github.com/Lemon-2333/chatgpt-in-terminal-Poe-Api) by @Lemon-2333 + ## Changelog ### 2023-05-18 @@ -90,6 +96,8 @@ Released `gpt-term` on [Pypi](https://pypi.org/project/gpt-term/), started versi 2. [Python](https://www.python.org/downloads/) version 3.7 or higher. + **Attention: Try not to use the Python that comes with the system (including Windows 11 app store version and MacOS pre-installed Python), otherwise the gpt-term command will not be found after installation ([#38](https://github.com/xiaoxx970/chatgpt-in-terminal/issues/38))** + ## Installation @@ -125,6 +133,12 @@ Run with the following command: gpt-term ``` +Or: + +```shell +python3 -m gpt_term +``` + When entering a question in single-line mode, use `Esc` + `Enter` to start a new line, and use `Enter` to submit the question. Here are some common shortcut keys (also shortcut keys for the shell): diff --git a/README.zh-CN.md b/README.zh-CN.md index 17a613a..845ee88 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -21,6 +21,12 @@ 默认使用 [gpt-3.5-turbo](https://platform.openai.com/docs/guides/chat/chat-completions-beta) 模型,也就是 ChatGPT(免费版) 所使用的模型。 +### 相关项目 + +[C/C++实现的GPTerm](https://github.com/Ace-Radom/cGPTerm) by @Ace-Radom + +[可以调用 POE API 的 gpt-term](https://github.com/Lemon-2333/chatgpt-in-terminal-Poe-Api) by @Lemon-2333 + ## 更新记录 ### 2023-05-18 @@ -93,6 +99,8 @@ 2. [Python](https://www.python.org/downloads/) 3.7 或更高版本 + **注意:尽量不要使用系统自带的 Python(包括Windows11 的应用商店版 Python 和 MacOS 的预装 Python),否则会出现安装好后gpt-term 命令找不到的情况 ([#38](https://github.com/xiaoxx970/chatgpt-in-terminal/issues/38))** + ## 安装 1. 使用 `pip` 安装 `GPT-Term` @@ -128,6 +136,12 @@ pip3 install --upgrade gpt-term gpt-term ``` +或者: + +```shell +python3 -m gpt_term +``` + 在默认的单行模式下输入提问时,使用 `Esc` + `Enter` 换行,`Enter` 提交 以下是一些常见的快捷键(同时也是shell的快捷键): diff --git a/gpt_term/locale/gpt_term.zh_CN.yml b/gpt_term/locale/gpt_term.zh_CN.yml index 0312d6d..94e59a4 100644 --- a/gpt_term/locale/gpt_term.zh_CN.yml +++ b/gpt_term/locale/gpt_term.zh_CN.yml @@ -1,7 +1,7 @@ zh_CN: welcome: "[dim]你好, 欢迎和 GPT 聊天. 输入`[bright_magenta]/help[/]` 显示可用命令." exit: "退出中..." - spent_token: "[bright_magenta]已花费的 Token总数:[bold]%{total_tokens_spent}" + spent_token: "[bright_magenta]已花费的 token 总数:[bold]%{total_tokens_spent}" save_api_key: "将 API Key 保存到配置文件中?" input_api_key: "未找到 OpenAI API Key, 请输入:" config_key_to_shell_key: "配置项 `[bright_magenta]%{key_word}[/]` 已设置为 [green]%{val}[/]"