A multi-model AI Telegram bot powered by Cloudflare Workers, supporting various APIs including OpenAI, Claude, and Azure. Developed in TypeScript with a modular design for easy expansion.基于 Cloudflare Workers 的多模型 AI Telegram 机器人,支持 OpenAI、Claude、Azure 等多个 API,采用 TypeScript 开发,模块化设计便于扩展。
OPENAI_COMPATIBLE_KEY
:OpenAI Compatible API 密钥OPENAI_COMPATIBLE_URL
:OpenAI Compatible API 基础 URL/switchmodel
命令可直接调用这些自动获取的模型⚠️ 重要提示:为避免潜在冲突,不建议在 OpenAI Compatible 中添加与其他 API 重复的模型。例如,如果您已设置 Gemini API 并选择调用 gemini-1.5-flash 模型,则不应在 OpenAI Compatible 中添加相同的模型。
OPENAI_COMPATIBLE_KEY
: OpenAI Compatible API keyOPENAI_COMPATIBLE_URL
: OpenAI Compatible API base URL/switchmodel
command now directly supports these automatically retrieved models⚠️ Important Note: To avoid potential conflicts, it is not recommended to add models in OpenAI Compatible that are identical to those in other APIs. For example, if you have set up the Gemini API and chosen to use the gemini-1.5-flash model, you should not add the same model in OpenAI Compatible.
🚀 全新图片分析功能上线
🚀 New Image Analysis Feature Launched
🎉 1.0 正式发布
• 🌏 新增五种语言支持:
🎉 1.0 Official Release
• 🌏 Added support for five new languages:
🚀 引入便捷「M」菜单,多语言支持全面优化!
• 📱 全新「M」菜单按钮:
🚀 Introducing the Handy "M" Menu with Enhanced Multilingual Support!
• 📱 New "M" menu button:
🚀引入 Azure AI 模型支持
• ☁️ 全新集成 Azure AI 模型功能:
🚀 Introducing Azure AI Model Support
• ☁️ New integration with Azure AI models:
🚀 引入 Claude AI 支持
• 🧠 全新集成 Claude AI 功能:
🚀 Introducing Claude AI Support
• 🧠 New integration with Claude AI:
🚀 整合 Groq API,体验更快速的 AI!
• 🔌 全新集成 Groq API 调用功能:
🚀 Integrating Groq API for Lightning-Fast AI!
• 🔌 New integration with Groq API:
🚀 引入 Google Gemini 模型支持!
• 🧠 新增 Google Gemini 系列模型调用功能:
🚀 Introducing Google Gemini Model Support!
• 🧠 Added support for Google Gemini model series:
🚀 Flux功能大升级:引入智能提示优化!
• 🔧 新增四个可选环境变量,让您的体验更加个性化:
🚀 Major Flux Upgrade: Introducing Smart Prompt Optimization!
• 🔧 Added four new optional environment variables for a more personalized experience:
📊 Flux功能再升级:更智能,更便捷!
• 🖼️ 优化 /flux 命令,提供更友好的用户体验
📊 Flux Feature Enhanced: Smarter and More Convenient!
• 🖼️ Optimized /flux command for a more user-friendly experience
🎨 Flux图像生成功能全面升级!
• 📐 新增多种预设尺寸和宽高比选项:
🎨 Flux Image Generation Feature Fully Enhanced!
• 📐 Introduced multiple preset sizes and aspect ratios:
🌈 全新功能:Cloudflare Flux 图像生成来袭!
• 🖼️ 新增 /flux 命令,开启AI艺术创作新篇章
• ☁️ 成功集成 Cloudflare Flux API,拓展图像生成能力
• 🔑 引入新环境变量,轻松配置您的Flux体验:
🌈 New Feature: Cloudflare Flux Image Generation is Here!
• 🖼️ Introduced /flux command, opening a new chapter in AI art creation
• ☁️ Successfully integrated Cloudflare Flux API, expanding image generation capabilities
• 🔑 New environment variables for easy Flux experience configuration:
🖼️ 图像生成功能优化:更精准,更智能!
• 🔧 修复 /image 命令的分辨率调用问题
🖼️ Image Generation Feature Refined: More Precise, More Intelligent!
• 🔧 Fixed resolution issue in /image command
🎨 重磅更新:DALL·E 图像生成功能来袭!
• 🖼️ 新增 /img 命令,释放您的创意想象力
注意:DALL·E 功能仅在配置 OpenAI 环境变量后可用哦!
🎨 Major Update: DALL·E Image Generation Now Available!
• 🖼️ Introduced /img command to unleash your creative imagination
Note: DALL·E feature is only available when OpenAI environment variables are configured!
🎉 功能改进:操作更简,体验更佳!
• 🌐 升级 /language 命令,引入菜单选择功能
🎉 Feature Improvements: Simpler Operations, Better Experience!
• 🌐 Enhanced /language command with menu selection
🚀 功能升级:为您带来更多选择和便利!
• 🔄 新增 /switchmodel 命令,灵活切换AI模型
🚀 Feature Update: More Choices and Convenience at Your Fingertips!
• 🔄 Introduced /switchmodel command for flexible AI model switching
📢 功能优化:让对话更流畅,体验更贴心!
• 📜➡️📃 新增超长消息自动分段发送功能,告别内容截断烦恼
• 🌐🔧 优化 /history 命令,现在将根据用户设定的语言精准总结对话历史
📢 Feature Enhancements: Smoother Conversations, Better Experience!
• 📜➡️📃 Implemented automatic segmentation for lengthy messages, eliminating content truncation issues
• 🌐🔧 Refined /history command, now summarizing chat history in the user's preferred language