Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ares-chang/tbot
A chatbot that runs on the terminal
https://github.com/ares-chang/tbot
Last synced: 3 months ago
JSON representation
A chatbot that runs on the terminal
- Host: GitHub
- URL: https://github.com/ares-chang/tbot
- Owner: Ares-Chang
- License: mit
- Created: 2023-11-06T09:40:06.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-20T09:20:44.000Z (7 months ago)
- Last Synced: 2024-07-21T09:46:27.896Z (6 months ago)
- Language: TypeScript
- Size: 426 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
简体中文 | English# tbot
运行在终端上的聊天机器人
## Use
通过 NPM 进行全局安装
```bash
npm install @areschang/tbot -g
```键入以下命令,唤醒聊天机器人
```bash
tbot # or chat
```键入 `exit` 退出程序运行
## Config
项目初次运行会在用户目录下新建一个名为 `.tbot` 的配置文件,基本配置为下:
```bash
# ~\.tbot
TBOT_BASE_URL = https://api.chatanywhere.com.cn # 请求基本路径
TBOT_OPENAI_API_KEY = 'You Keys' # 请填充自己的 api key
TBOT_MODEL = gpt-3.5-turbo # 模型类型
TBOT_MESSAGE_MAX = 10 # 聊天携带历史信息数
TBOT_USER_NAME = You # 用户昵称
TBOT_BOT_NAME = Bot # 机器人昵称
TBOT_USER_NAME_COLOR = '#61afef' # 用户昵称颜色
TBOT_BOT_NAME_COLOR = '#c678dd' # 机器人昵称颜色
TBOT_BOT_TEXT_COLOR = '#d1d5db' # 机器人文本颜色
```配置内容可按需更改
> 默认请求路径为国内中转程序,基于 [GPT_API_free](https://github.com/chatanywhere/GPT_API_free) 项目提供,仅供学习,感谢!