fix: 修复保存telegram设置后会将telegram登陆禁用的问题

This commit is contained in:
1808837298@qq.com 2024-03-03 23:41:00 +08:00
parent d2de675564
commit 1f0a48a879
2 changed files with 5 additions and 9 deletions

View File

@ -37,19 +37,15 @@
9. 支持渠道**加权随机**
10. 数据看板
11. 可设置令牌能调用的模型
12. 支持Telegram授权登录
## 模型支持
此版本支持以下模型:
1. OpenAI基础模型gpt-3.5, gpt-4, gpt-4-turbo系列
2. dall-e-3
3. tts-1
4. 第三方模型 **gps** gpt-4-gizmo-*
5. gemini-pro, gemini-pro-vision
6. 智谱glm-4, glm-4v识图
此版本额外支持以下模型:
1. 第三方模型 **gps** gpt-4-gizmo-*
2. 智谱glm-4vglm-4v识图
您可以在渠道中添加自定义模型gpt-4-gizmo-*此模型并非OpenAI官方模型而是第三方模型使用官方key无法调用。
## 部署
### 基于 Docker 进行部署
```shell

View File

@ -244,7 +244,7 @@ const SystemSetting = () => {
};
const submitTelegramSettings = async () => {
await updateOption('TelegramOAuthEnabled', inputs.TelegramOAuthEnabled);
// await updateOption('TelegramOAuthEnabled', inputs.TelegramOAuthEnabled);
await updateOption('TelegramBotToken', inputs.TelegramBotToken);
await updateOption('TelegramBotName', inputs.TelegramBotName);
};