Skip to content

Commit

Permalink
Merge pull request #261 from TBXark/dev
Browse files Browse the repository at this point in the history
1.8.0 pre-release
  • Loading branch information
TBXark authored Jul 18, 2024
2 parents 3df458c + 418f59c commit 47b87b1
Show file tree
Hide file tree
Showing 55 changed files with 4,799 additions and 4,889 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ You can customize the system initialization information so that your debugged pe
## Features

- Serverless deployment
- Multi-platform deployment support (Cloudflare Workers, Vercel, Render[...](doc/en/DEPLOY.md))
- Adaptation to multiple AI service providers (OpenAI, Azure OpenAI, Cloudflare AI, Cohere, Anthropic, Mistral...)
- Custom commands (can achieve quick switching of models, switching of robot presets)
- Support for multiple Telegram bots
- Support for multiple OpenAI keys
- Support for Azure OpenAI Service
- Support for Cloudflare AI (free)
- Support for streaming output
- Support for custom command
- Support for multiple platforms deployment
- Streaming output
- Multi-language support
- Text-to-image generation

## Documentation

Expand All @@ -40,7 +40,6 @@ You can customize the system initialization information so that your debugged pe
- [Support Platform](./doc/en/PLATFORM.md)
- [Changelog](./doc/en/CHANGELOG.md)


## Special thanks

![https://www.jetbrains.com/?from=tbxark](https://user-images.githubusercontent.com/9513891/236592683-1ea579cf-08ff-4703-b313-db038f62bab0.svg)
Expand Down
15 changes: 7 additions & 8 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ChatGPT-Telegram-Workers
</p>

## 关于

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

<details>
Expand All @@ -20,13 +21,13 @@ ChatGPT-Telegram-Workers
## 特性

- 无服务器部署
- 多平台部署支持(Cloudflare Workers, Vercel, Render[...](doc/cn/DEPLOY.md))
- 适配多种AI服务商(OpenAI, Azure OpenAI, Cloudflare AI, Cohere, Anthropic, Mistral...)
- 自定义指令(可以实现快速切换模型,切换机器人预设)
- 支持多个Telegram机器人
- 支持多个OpenAI密钥
- 支持Azure OpenAI服务
- 支持Cloudflare AI(免费)
- 支持流式输出
- 支持自定义指令
- 支持多平台部署
- 流式输出
- 多语言支持
- 文字生成图片

## 文档

Expand All @@ -36,14 +37,12 @@ ChatGPT-Telegram-Workers
- [支持平台](./doc/cn/PLATFORM.md)
- [变更日志](./doc/cn/CHANGELOG.md)


## 特别感谢

![https://www.jetbrains.com/?from=tbxark](https://user-images.githubusercontent.com/9513891/236592683-1ea579cf-08ff-4703-b313-db038f62bab0.svg)

感谢[JetBrains](https://www.jetbrains.com/?from=tbxark)提供的开源开发许可证。


## 贡献者

这个项目存在是因为所有贡献的人。[贡献](https://github.com/tbxark/ChatGPT-Telegram-Workers/graphs/contributors)
Expand Down
8 changes: 8 additions & 0 deletions adapter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Adapter

**ChatGPT-Telegram-Workers** is the code that runs on Cloudflare Workers, if you want to run on other platforms, you can refer to the adapters in this directory.

1. **docker**: Dockerfile for running on local
2. **local**: Run on local
3. **Render**: Run on Render
4. **Vercel**: Run on Vercel
4 changes: 3 additions & 1 deletion adapter/local/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/config.json
/database.json
/database.sqlite
/database.sqlite3
/database.sqlite3
/test
.DS_Store
2 changes: 1 addition & 1 deletion adapter/local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from 'fs';
import HttpsProxyAgent from 'https-proxy-agent';
import fetch from 'node-fetch';
import {default as worker} from '../../main.js';
import {ENV} from '../../src/env.js';
import {ENV} from '../../src/config/env.js';


const config = JSON.parse(fs.readFileSync('./config.json', 'utf-8'));
Expand Down
2 changes: 1 addition & 1 deletion adapter/render/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ function requestBuilder(baseURL, req) {

// 延迟加载 ../main.js, 防止ENV过早初始化
const {default: worker} = await import('../../main.js');
adapter.startServerV2(env.PORT, env.HOST, env, {}, requestBuilder, worker.fetch);
adapter.startServerV2(parseInt(env.PORT), env.HOST, env, {}, requestBuilder, worker.fetch);
2 changes: 1 addition & 1 deletion dist/buildinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sha": "1f5c717", "timestamp": 1720876009}
{"sha": "8aa40ac", "timestamp": 1721280807}
Loading

0 comments on commit 47b87b1

Please sign in to comment.