mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
docs
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
4. [cloudflare 方案](./proxy/cloudflare.md) - 需要有域名(每日免费 10w 次代理请求)
|
||||
5. [腾讯云函数代理方案](https://github.com/easychen/openai-api-proxy/blob/master/FUNC.md) - 仅需一台服务器
|
||||
|
||||
## openai key 池管理方案
|
||||
|
||||
推荐使用 [one-api](https://github.com/songquanpeng/one-api) 项目来管理 key 池,兼容 openai 和微软等多渠道。部署可以看该项目的 README.md,也可以看 [在 Sealos 1 分钟部署 one-api](./one-api/sealos.md)
|
||||
|
||||
### 1. 准备一些内容
|
||||
|
||||
> 1. 服务器开通 80 端口。用代理的话,对应的代理端口也需要打开。
|
||||
|
@@ -67,7 +67,7 @@ services:
|
||||
- PG_USER=fastgpt
|
||||
- PG_PASSWORD=1234
|
||||
- PG_DB_NAME=fastgpt
|
||||
# openai
|
||||
# openai, 推荐使用 one-api 管理key
|
||||
- OPENAIKEY=sk-xxxxx
|
||||
- OPENAI_BASE_URL=https://api.openai.com/v1
|
||||
- OPENAI_BASE_URL_AUTH=可选的安全凭证
|
||||
|
34
docs/deploy/one-api/sealos.md
Normal file
34
docs/deploy/one-api/sealos.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# 在 Sealos 1 分钟部署 one-api
|
||||
|
||||
## 1. 进入 Sealos 公有云
|
||||
|
||||
https://cloud.sealos.io/
|
||||
|
||||
## 2. 打开 AppLaunchpad(应用管理) 工具
|
||||
|
||||

|
||||
|
||||
## 3. 点击创建新应用
|
||||
|
||||
## 4. 填写对应参数
|
||||
|
||||

|
||||
打开外网访问开关后,Sealos 会自动分配一个可访问的地址,不需要自己配置。
|
||||
|
||||

|
||||
填写完参数后,点击右上角部署即可。
|
||||
|
||||
## 5. 访问
|
||||
|
||||
点击 Sealos 提供的外网访问地址,即可访问 one-api 项目。
|
||||

|
||||

|
||||
|
||||
## 6. 替换 FastGpt 的环境变量
|
||||
|
||||
```
|
||||
# 下面的地址是 Sealos 提供的,务必写上 v1
|
||||
OPENAI_BASE_URL=https://xxxx.cloud.sealos.io/v1
|
||||
# 下面的 key 由 one-api 提供
|
||||
OPENAIKEY=sk-xxxxxx
|
||||
```
|
BIN
docs/deploy/one-api/sealosImg/step1.png
Normal file
BIN
docs/deploy/one-api/sealosImg/step1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 MiB |
BIN
docs/deploy/one-api/sealosImg/step2.png
Normal file
BIN
docs/deploy/one-api/sealosImg/step2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
BIN
docs/deploy/one-api/sealosImg/step3.png
Normal file
BIN
docs/deploy/one-api/sealosImg/step3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 215 KiB |
BIN
docs/deploy/one-api/sealosImg/step4.png
Normal file
BIN
docs/deploy/one-api/sealosImg/step4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 KiB |
BIN
docs/deploy/one-api/sealosImg/step5.png
Normal file
BIN
docs/deploy/one-api/sealosImg/step5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 128 KiB |
Reference in New Issue
Block a user