GithubHelp home page GithubHelp logo

tbot's Introduction

简体中文 | English

tbot

运行在终端上的聊天机器人

tbot

Use

通过 NPM 进行全局安装

npm install @areschang/tbot -g

键入以下命令,唤醒聊天机器人

tbot # or chat

键入 exit 退出程序运行

Config

项目初次运行会在用户目录下新建一个名为 .tbot 的配置文件,基本配置为下:

# ~\.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 # 机器人昵称

配置内容可按需更改

默认请求路径为国内中转程序,基于 GPT_API_free 项目提供,仅供学习,感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.