2023-08-03 11:03:14 +08:00
|
|
|
additionalProperties:
|
|
|
|
formFields:
|
|
|
|
- default: 40021
|
|
|
|
edit: true
|
|
|
|
envKey: PANEL_APP_PORT_HTTP
|
|
|
|
labelEn: WebUI Port
|
|
|
|
labelZh: 网页端口
|
|
|
|
required: true
|
|
|
|
rule: paramPort
|
|
|
|
type: number
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: ACCESS_TOKEN
|
|
|
|
labelEn: OPENAI ACCESS TOKEN (fill in at least one with OPENAI API KEY)(https://chat.openai.com/api/auth/session)
|
2023-08-03 16:00:47 +08:00
|
|
|
labelZh: OPENAI ACCESS TOKEN (与OPENAI API KEY至少填一个)(https://chat.openai.com/api/auth/session)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: https://bypass.duti.tech/api/conversation
|
|
|
|
edit: true
|
|
|
|
envKey: REVERSE_PROXY
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: API reverse proxy (optional)(enabled by default when OPENAI ACCESS TOKEN, need to pay attention to availability)
|
|
|
|
labelZh: API 反向代理 (可选)(OPENAI ACCESS TOKEN 时默认启用,需要注意可用性)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: API_KEY
|
|
|
|
labelEn: OPENAI API KEY (fill in at least one with OPENAI ACCESS TOKEN)
|
2023-08-03 16:00:47 +08:00
|
|
|
labelZh: OPENAI API KEY (与 OPENAI ACCESS TOKEN 至少填一个)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: gpt-3.5-turbo
|
|
|
|
edit: true
|
|
|
|
envKey: API_MODEL
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: API model (optional)(available when setting OPENAI API KEY)(https://platform.openai.com/docs/models)
|
|
|
|
labelZh: API 模型 (可选)(设置 OPENAI API KEY 时可用)(https://platform.openai.com/docs/models)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: https://api.openai.com
|
|
|
|
edit: true
|
|
|
|
envKey: API_BASE_URL
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: API interface address (optional)(available when setting OPENAI API KEY)
|
|
|
|
labelZh: API接口地址 (可选)(设置 OPENAI API KEY 时可用)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: chatgptweb
|
|
|
|
edit: true
|
|
|
|
envKey: SECRET_KEY
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Access rights key (optional)((recommended)
|
|
|
|
labelZh: 访问权限密钥 (可选)(强烈建议填写)
|
2023-08-03 11:03:14 +08:00
|
|
|
random: true
|
|
|
|
required: false
|
|
|
|
rule: paramComplexity
|
|
|
|
type: password
|
|
|
|
- default: '0'
|
|
|
|
edit: true
|
|
|
|
envKey: REQUEST_LIMIT
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Maximum number of requests per hour (optional)(default unlimited)
|
|
|
|
labelZh: 每小时最大请求次数 (可选)(默认无限)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: '60000'
|
|
|
|
edit: true
|
|
|
|
envKey: TIMEOUT
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Timeout(in milliseconds) (optional)
|
|
|
|
labelZh: 超时时间(单位毫秒) (可选)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: PROXY_HOST
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Socks proxy address (optional)(effective when combined with Socks proxy port)
|
|
|
|
labelZh: Socks 代理地址 (可选)(和 Socks 代理端口一起时生效)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: PROXY_PORT
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Socks proxy port (optional)(effective when combined with Socks proxy address)
|
|
|
|
labelZh: Socks 代理端口 (可选)(和 Socks 代理地址一起时生效)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: PROXY_USERNAME
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Socks proxy user name (optional)(effective when combined with Socks proxy address)
|
|
|
|
labelZh: Socks 代理用户名 (可选)(和 Socks 代理地址一起时生效)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: PROXY_PASSWORD
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: Socks proxy password (optional)(effective when combined with Socks proxy address)
|
|
|
|
labelZh: Socks 代理密码 (可选)(和 Socks 代理地址一起时生效)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|
|
|
|
- default: ''
|
|
|
|
edit: true
|
|
|
|
envKey: HTTPS_PROXY
|
2023-08-03 16:00:47 +08:00
|
|
|
labelEn: HTTPS proxy (optional)(supports http、https、socks5)
|
|
|
|
labelZh: HTTPS代理 (可选)(支持 http、https、socks5)
|
2023-08-03 11:03:14 +08:00
|
|
|
required: false
|
|
|
|
type: text
|