Code Monkey home page Code Monkey logo

chatgpt-telegram-workers's Introduction

ChatGPT-Telegram-Workers

English Version

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

查看Demo image

使用说明

分支

  • master 稳定版
  • dev 开发版,可能会有一些新功能,但是不稳定。会快速修复一些bug。

配置

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

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

部署流程

详情见 部署流程

如果需要部署在其他平台可以查看 多平台部署

自动更新

使用Github Action自动更新 Cloudflare Workers

详情见 自动更新

更新日志

  • v1.5.0
    • perf: 调整命令顺序
    • perf: openai发送请求前前发送loading消息
    • feat: 添加流式输出支持(默认开启)。使用STREAM_MODE=false关闭
    • feat: 添加安全模式(默认开启)解决TG无限重试的问题
    • feat: 增加对多个KEY的适配,随机选择KEY使用
    • feat: 增加快捷按钮 /new, /redo

其他更新日志见CHANGELOG.md

最佳实践

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

支持我

如果使用openai期间需要绑卡可以使用我的onekey的邀请码: https://card.onekey.so/?i=QO19EC 如果有其他问题可以加群交流。

特别鸣谢

https://www.jetbrains.com/?from=tbxark

感谢 JetBrains 提供的开源开发许可证。

贡献者

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

许可证

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

chatgpt-telegram-workers's People

Contributors

tbxark avatar cheivin avatar silentely avatar anotiawang avatar ffffourwood avatar panmax avatar linking123 avatar miraclexyz avatar xin053 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.