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
90a81fcd
authored
Oct 22, 2023
by
subnew
Committed by
GitHub
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: add description for TIKTOKEN_CACHE_DIR (#612)
* Update README.md * Update README.md
parent
01b3e126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
README.md
+3
-0
No files found.
README.md
View file @
90a81fcd
...
@@ -352,6 +352,9 @@ graph LR
...
@@ -352,6 +352,9 @@ graph LR
13.
请求频率限制:
13.
请求频率限制:
+
`GLOBAL_API_RATE_LIMIT`
:全局 API 速率限制(除中继请求外),单 ip 三分钟内的最大请求数,默认为
`180`
。
+
`GLOBAL_API_RATE_LIMIT`
:全局 API 速率限制(除中继请求外),单 ip 三分钟内的最大请求数,默认为
`180`
。
+
`GLOBAL_WEB_RATE_LIMIT`
:全局 Web 速率限制,单 ip 三分钟内的最大请求数,默认为
`60`
。
+
`GLOBAL_WEB_RATE_LIMIT`
:全局 Web 速率限制,单 ip 三分钟内的最大请求数,默认为
`60`
。
14.
编码器缓存设置:
+
`TIKTOKEN_CACHE_DIR`
:默认程序启动时会联网下载一些通用的词元的编码,如:
`gpt-3.5-turbo`
,在一些网络环境不稳定,或者离线情况,可能会导致启动有问题,可以配置此目录缓存数据,可迁移到离线环境。
+
`DATA_GYM_CACHE_DIR`
:目前该配置作用与
`TIKTOKEN_CACHE_DIR`
一致,但是优先级没有它高。
### 命令行参数
### 命令行参数
1.
`--port <port_number>`
: 指定服务器监听的端口号,默认为
`3000`
。
1.
`--port <port_number>`
: 指定服务器监听的端口号,默认为
`3000`
。
...
...
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