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
ba1adbfc
authored
Aug 30, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update README
parent
59eab663
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
README.md
+5
-1
No files found.
README.md
View file @
ba1adbfc
...
...
@@ -109,6 +109,8 @@ _✨ 通过标准的 OpenAI API 格式访问所有的大模型,开箱即用
数据将会保存在宿主机的
`/home/ubuntu/data/one-api`
目录,请确保该目录存在且具有写入权限,或者更改为合适的目录。
如果启动失败,请添加
`--privileged=true`
,具体参考 #482。
如果上面的镜像无法拉取,可以尝试使用 GitHub 的 Docker 镜像,将上面的
`justsong/one-api`
替换为
`ghcr.io/songquanpeng/one-api`
即可。
如果你的并发量较大,
**务必**
设置
`SQL_DSN`
,详见下面
[
环境变量
](
#环境变量
)
一节。
...
...
@@ -275,8 +277,9 @@ graph LR
不加的话将会使用负载均衡的方式使用多个渠道。
### 环境变量
1.
`REDIS_CONN_STRING`
:设置之后将使用 Redis 作为
请求频率限制的存储,而非使用内存存储
。
1.
`REDIS_CONN_STRING`
:设置之后将使用 Redis 作为
缓存使用
。
+
例子:
`REDIS_CONN_STRING=redis://default:redispw@localhost:49153`
+
如果数据库访问延迟很低,没有必要启用 Redis,启用后反而会出现数据滞后的问题。
2.
`SESSION_SECRET`
:设置之后将使用固定的会话密钥,这样系统重新启动后已登录用户的 cookie 将依旧有效。
+
例子:
`SESSION_SECRET=random_string`
3.
`SQL_DSN`
:设置之后将使用指定数据库而非 SQLite,请使用 MySQL 或 PostgreSQL。
...
...
@@ -339,6 +342,7 @@ https://openai.justsong.cn
5.
ChatGPT Next Web 报错:
`Failed to fetch`
+
部署的时候不要设置
`BASE_URL`
。
+
检查你的接口地址和 API Key 有没有填对。
+
检查是否启用了 HTTPS,浏览器会拦截 HTTPS 域名下的 HTTP 请求。
6.
报错:
`当前分组负载已饱和,请稍后再试`
+
上游通道 429 了。
...
...
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