Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3752c64b
authored
Mar 03, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复保存telegram设置后会将telegram登陆禁用的问题
parent
ef6b301b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
README.md
+4
-8
web/src/components/SystemSetting.js
+1
-1
No files found.
README.md
View file @
3752c64b
...
@@ -37,19 +37,15 @@
...
@@ -37,19 +37,15 @@
9.
支持渠道
**加权随机**
9.
支持渠道
**加权随机**
10.
数据看板
10.
数据看板
11.
可设置令牌能调用的模型
11.
可设置令牌能调用的模型
12.
支持Telegram授权登录
## 模型支持
## 模型支持
此版本支持以下模型:
此版本额外支持以下模型:
1.
OpenAI基础模型(gpt-3.5, gpt-4, gpt-4-turbo系列)
1.
第三方模型
**gps**
(gpt-4-gizmo-
*
)
2.
dall-e-3
2.
智谱glm-4v,glm-4v识图
3.
tts-1
4.
第三方模型
**gps**
(gpt-4-gizmo-
*
)
5.
gemini-pro, gemini-pro-vision
6.
智谱glm-4, glm-4v识图
您可以在渠道中添加自定义模型gpt-4-gizmo-
*
,此模型并非OpenAI官方模型,而是第三方模型,使用官方key无法调用。
您可以在渠道中添加自定义模型gpt-4-gizmo-
*
,此模型并非OpenAI官方模型,而是第三方模型,使用官方key无法调用。
## 部署
## 部署
### 基于 Docker 进行部署
### 基于 Docker 进行部署
```
shell
```
shell
...
...
web/src/components/SystemSetting.js
View file @
3752c64b
...
@@ -244,7 +244,7 @@ const SystemSetting = () => {
...
@@ -244,7 +244,7 @@ const SystemSetting = () => {
};
};
const
submitTelegramSettings
=
async
()
=>
{
const
submitTelegramSettings
=
async
()
=>
{
await
updateOption
(
'TelegramOAuthEnabled'
,
inputs
.
TelegramOAuthEnabled
);
//
await updateOption('TelegramOAuthEnabled', inputs.TelegramOAuthEnabled);
await
updateOption
(
'TelegramBotToken'
,
inputs
.
TelegramBotToken
);
await
updateOption
(
'TelegramBotToken'
,
inputs
.
TelegramBotToken
);
await
updateOption
(
'TelegramBotName'
,
inputs
.
TelegramBotName
);
await
updateOption
(
'TelegramBotName'
,
inputs
.
TelegramBotName
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment