Git Product home page Git Product logo

chatgpt-telegram-workers's Introduction

ChatGPT-Telegram-Workers

English Version

最简单快捷部署属于自己的ChatGPT Telegram机器人的方法。使用Cloudflare Workers,单文件,直接复制粘贴一把梭,无需任何依赖,无需配置本地开发环境,不用域名,免服务器。 可以自定义系统初始化信息,让你调试好的性格永远不消失。

image

使用说明

分支

  • master 经过测试基本没有BUG的版本
  • dev 有一些新功能,但是没有经过完整的测试,dist文件为基本可用的版本

配置

推荐在Workers配置界面填写环境变量, 而不是直接修改js代码中的变量

配置信息和命令使用说明,见 配置文档

部署流程

详情见 部署流程

自动更新

使用Github Action自动更新 Cloudflare Workers

详情见 自动更新

支持的平台

最简单的方法,本项目默认支持的部署方式,详情看部署流程。免费,无需域名,无需服务器,无需配置本地开发环境。KV存储,无需数据库,但是有一定的存储限制,

KV每天写入限制为1000次,不过对于聊天机器人来说,应该够用了。(调试模式DEBUG_MODE会保存最新一条消息到KV,token统计每次对话成功都会更新统计数据,所以会有一定的写入次数。如果你经常使用次数超过1000次,可以考虑关闭调试模式和者使用统计)

详情看Vercel。免费,无需域名,无需服务器。需要配置本地开发环境部署,不能通过复制粘贴部署。无存储服务,需要自己配置数据库。可以使用Redis Cloud的免费redis。可以连接github自动部署,但是需要了解vercel的配置。

详情看Render。免费,无需域名,无需服务器。需要有一定的开发能力。

4. Local

详情看Local。本地的部署方式,需要配置本地开发环境,需要有一定的开发能力。

更新日志

  • v1.4.0
    • 支持多平台部署
    • 添加/redo指令,重新发送或者修改上一条提问
    • 添加/delenv指令,删除环境变量恢复默认值
    • 添加多语言支持,使用LANGUAGE环境变量设置语言,目前支持zh-CNzh-TWen。默认为zh-CN

其他更新日志见CHANGELOG.md

最佳实践

新建多个机器人绑定到同一个workers,设置TELEGRAM_AVAILABLE_TOKENS,每个机器人赋予不同的SYSTEM_INIT_MESSAGE。开启群聊模式,新建多个群聊,每个群内只有自己个机器人,每个群的机器人由不同的SYSTEM_INIT_MESSAGE,比如翻译专家,文案专家,代码专家。然后每次根据自己的需求和不同的群里的机器人聊天,这样就不用经常切换配置属性。

贡献者

这个项目存在是因为所有贡献者的帮助。贡献.

许可证

ChatGPT-Telegram-Workers 以 MIT 许可证的形式发布。查看许可证 获取更多细节。

chatgpt-telegram-workers's People

Contributors

anotiawang avatar cheivin avatar ffffourwood avatar linking123 avatar miraclexyz avatar panmax avatar silentely avatar tbxark avatar xin053 avatar

Watchers

 avatar

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.