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
6b8d8d77
authored
Apr 04, 2024
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README.md
parent
fb992eee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
README.md
+10
-0
No files found.
README.md
View file @
6b8d8d77
...
@@ -59,6 +59,16 @@
...
@@ -59,6 +59,16 @@
您可以在渠道中添加自定义模型gpt-4-gizmo-
*
,此模型并非OpenAI官方模型,而是第三方模型,使用官方key无法调用。
您可以在渠道中添加自定义模型gpt-4-gizmo-
*
,此模型并非OpenAI官方模型,而是第三方模型,使用官方key无法调用。
## 渠道重试
渠道重试功能已经实现,可以在渠道管理中设置重试次数,需要开启缓存功能,否则只会使用同优先级重试。
如果开启了缓存功能,第一次重试使用同优先级,第二次重试使用下一个优先级,以此类推。
### 缓存设置方法
1.
`REDIS_CONN_STRING`
:设置之后将使用 Redis 作为缓存使用。
+
例子:
`REDIS_CONN_STRING=redis://default:redispw@localhost:49153`
2.
`MEMORY_CACHE_ENABLED`
:启用内存缓存(如果设置了
`REDIS_CONN_STRING`
,则无需手动设置),会导致用户额度的更新存在一定的延迟,可选值为
`true`
和
`false`
,未设置则默认为
`false`
。
+
例子:
`MEMORY_CACHE_ENABLED=true`
## 部署
## 部署
### 基于 Docker 进行部署
### 基于 Docker 进行部署
```
shell
```
shell
...
...
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