Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
cf9c8e9
fix: leave team and refresh memberlist (#3893)
FinleyGe Feb 26, 2025
747bb30
chore: upgrade mongoose to v8.10.x for security (#3868)
FinleyGe Feb 26, 2025
3c382d1
Update intro.md (#3900)
c121914yu Feb 26, 2025
81a0671
feat: ai proxy v1 (#3898)
c121914yu Feb 27, 2025
27ebd2e
Update parseOffice.ts (#3901)
zl59503020 Feb 27, 2025
fb0eb49
fix: pptx encoding (#3905)
c121914yu Feb 27, 2025
c3d3b30
update code positon (#3907)
c121914yu Feb 27, 2025
9f57ad0
fix: mongoose strictquery to false (#3906)
FinleyGe Feb 27, 2025
9bbee60
fix: ts error (#3911)
FinleyGe Feb 27, 2025
1121ea3
更新 docker.md (#3913)
c121914yu Feb 27, 2025
fc9e614
4.8.23 dev (#3917)
c121914yu Feb 27, 2025
1aa319e
Update package.json (#3919)
c121914yu Feb 27, 2025
e697fda
fix: export chat log - chat detail order (#3923)
newfish-cmyk Feb 28, 2025
df4d6f8
fix: delete dataset field error (#3925)
c121914yu Feb 28, 2025
ac4255e
4.8.23 dev (#3926)
c121914yu Feb 28, 2025
cf0aaa1
fix: invalid dataset data clear (#3927)
c121914yu Feb 28, 2025
f7b2a57
1 (#3924)
gggaaallleee Feb 28, 2025
abc6dff
4.8.23 dev (#3932)
c121914yu Feb 28, 2025
113e8f7
add env proxypool (#3939)
gggaaallleee Mar 2, 2025
4bc7f21
fix: add order:true to all create transactions (#3948)
FinleyGe Mar 3, 2025
efac531
fix: rerank model cannot use ai proxy (#3945)
c121914yu Mar 3, 2025
e860c56
perf: delete dataset (#3949)
c121914yu Mar 3, 2025
b4dda6a
fix: Check the url to avoid ssrf attacks (#3965)
c121914yu Mar 4, 2025
33617ab
Create SECURITY.md (#3967)
c121914yu Mar 4, 2025
576c60b
plugin customize author (#3963)
newfish-cmyk Mar 4, 2025
b2e2fa6
fix loop child nodes variables (#3980)
newfish-cmyk Mar 5, 2025
dbf25ce
fix ai proxy logs pagination (#3954)
newfish-cmyk Mar 5, 2025
3fadabd
fix: 优化读取mongo文件性能,解决因执行Buffer.concat过多造成等待导致整个服务hang住的 (#3985)
lgphone Mar 5, 2025
662a4a4
fix: remove defaultTeam (#3989)
FinleyGe Mar 5, 2025
2d351c3
perf: http body check
c121914yu Mar 6, 2025
5c718ab
Merge pull request #4003 from labring/v4.8.23
c121914yu Mar 6, 2025
90d13ee
Update README.md (#3999)
Fmaverick Mar 6, 2025
08b6f59
pref: set strictQuery to throw. (#3994)
FinleyGe Mar 6, 2025
adf5377
Add image index and pdf parse (#3956)
c121914yu Mar 3, 2025
54eb5c0
feat: pg vector 0.8.0;perf: app pdf enhance parse (#3962)
c121914yu Mar 4, 2025
e98d6f1
Add markdown format; Update doc (#3969)
c121914yu Mar 5, 2025
e1aa068
ai proxy docker compose & doc (#3947)
newfish-cmyk Mar 5, 2025
3e3f216
feat: prompt call tool support reason;perf: ai proxy doc (#3982)
c121914yu Mar 5, 2025
0bc075a
doc
c121914yu Mar 5, 2025
32ce032
update init sh
c121914yu Mar 5, 2025
a345e56
simple mode tool reason (#3984)
c121914yu Mar 5, 2025
e131465
fix: link (#3987)
c121914yu Mar 5, 2025
7c419a2
pdf parse doc (#3990)
c121914yu Mar 5, 2025
3ddbb37
update action
c121914yu Mar 5, 2025
43f30b3
doc
c121914yu Mar 6, 2025
8980664
markerv0.2 (#3992)
YYH211 Mar 6, 2025
d05259d
perf: retry to load image;perf: default index check (#4004)
c121914yu Mar 6, 2025
c8a3582
perf: doc (#4005)
c121914yu Mar 6, 2025
c005a94
version doc
c121914yu Mar 6, 2025
467c408
README
c121914yu Mar 6, 2025
54fde76
V4.9.0 feature (#4006)
c121914yu Mar 6, 2025
a1b114e
feat: qwen qwq model config (#4008)
c121914yu Mar 6, 2025
6e04509
qwq config (#4009)
c121914yu Mar 6, 2025
c35bb58
version doc (#4013)
c121914yu Mar 6, 2025
bca5cf7
翻译缺失 (#4010)
ENg-122 Mar 6, 2025
4957bdc
Update official_account.md (#4021)
c121914yu Mar 7, 2025
2270e14
Update 490.md (#4022)
c121914yu Mar 7, 2025
b50cf49
更新 4820.md (#4028)
c121914yu Mar 7, 2025
36da8c8
fix: 修复知识库问题优化无效的BUG (#4033)
PairZhu Mar 7, 2025
867e8ac
fix: 修复部分参数丢失的问题 (#4040)
PairZhu Mar 8, 2025
0dccfd1
fix: 修复最大响应 tokens 提示显示错误的问题 (#4048)
PairZhu Mar 10, 2025
2f522af
perf: HTTP node jsonBody support \n
c121914yu Mar 10, 2025
9523ba9
perf: HTTP node jsonBody support \n (#4070)
c121914yu Mar 10, 2025
effdb58
chore(deps): bump jsonpath-plus from 10.1.0 to 10.3.0 (#4089)
dependabot[bot] Mar 11, 2025
75cb467
chore(deps): bump axios from 1.7.2 to 1.8.2 (#4088)
dependabot[bot] Mar 11, 2025
3a730a2
chore(deps): bump next from 14.2.5 to 14.2.21 in /projects/app (#4087)
dependabot[bot] Mar 11, 2025
bf69aa6
chore(deps): bump next from 14.2.5 to 14.2.21 (#4091)
dependabot[bot] Mar 11, 2025
e31131e
chore: vitest
FinleyGe Feb 10, 2025
7b89cb0
chore: move test files
FinleyGe Feb 10, 2025
db1df33
chore: support vitest
FinleyGe Feb 10, 2025
e14b56c
fix: exclude test files
FinleyGe Mar 11, 2025
1067878
chore(ci): add test workflow
FinleyGe Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .github/workflows/docs-deploy-kubeconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- 'docSite/**'
branches:
- 'main'
tags:
- 'v*.*.*'

jobs:
build-fastgpt-docs-images:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docs-deploy-vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
- 'docSite/**'
branches:
- 'main'
tags:
- 'v*.*.*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
pull_request_target:
paths:
- 'docSite/**'
branches:
- 'main'
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,3 @@ jobs:
SEALOS_TYPE: 'pr_comment'
SEALOS_FILENAME: 'report.md'
SEALOS_REPLACE_TAG: 'DEFAULT_REPLACE_DEPLOY'

helm-check:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Helm Check
run: |
helm dependency update files/helm/fastgpt
helm lint files/helm/fastgpt
helm package files/helm/fastgpt
28 changes: 28 additions & 0 deletions .github/workflows/fastgpt-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'FastGPT-Test'
on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- name: 'Install Deps'
run: pnpm install
- name: 'Test'
run: pnpm run test:all
- name: 'Report Coverage'
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2
4 changes: 2 additions & 2 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
export APP_VERSION=${{ steps.vars.outputs.tag }}
export HELM_VERSION=${{ steps.vars.outputs.tag }}
export HELM_REPO=ghcr.io/${{ github.repository_owner }}
helm dependency update files/helm/fastgpt
helm package files/helm/fastgpt --version ${HELM_VERSION}-helm --app-version ${APP_VERSION} -d bin
helm dependency update deploy/helm/fastgpt
helm package deploy/helm/fastgpt --version ${HELM_VERSION}-helm --app-version ${APP_VERSION} -d bin
helm push bin/fastgpt-${HELM_VERSION}-helm.tgz oci://${HELM_REPO}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ files/helm/fastgpt/fastgpt-0.1.0.tgz
files/helm/fastgpt/charts/*.tgz

tmp/
coverage
2 changes: 1 addition & 1 deletion .vscode/nextapi.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"body": [
"import '@/pages/api/__mocks__/base';",
"import { root } from '@/pages/api/__mocks__/db/init';",
"import { getTestRequest } from '@/test/utils';",
"import { getTestRequest } from '@fastgpt/service/test/utils'; ;",
"import { AppErrEnum } from '@fastgpt/global/common/error/code/app';",
"import handler from './demo';",
"",
Expand Down
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@
},
"markdown.copyFiles.destination": {
"/docSite/content/**/*": "${documentWorkspaceFolder}/docSite/assets/imgs/"
},
"markdown.copyFiles.overwriteBehavior": "nameIncrementally",
"markdown.copyFiles.transformPath": "const filename = uri.path.split('/').pop(); return `/imgs/${filename}`;"
}
}
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,6 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
<img src="https://img.shields.io/badge/-返回顶部-7d09f1.svg" alt="#" align="right">
</a>

## 🏘️ 社区交流群

扫码加入飞书话题群:

![](https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png)

<a href="#readme">
<img src="https://img.shields.io/badge/-返回顶部-7d09f1.svg" alt="#" align="right">
</a>

## 🏘️ 加入我们

我们正在寻找志同道合的小伙伴,加速 FastGPT 的发展。你可以通过 [FastGPT 2025 招聘](https://fael3z0zfze.feishu.cn/wiki/P7FOwEmPziVcaYkvVaacnVX1nvg)了解 FastGPT 的招聘信息。
Expand All @@ -133,17 +123,26 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
- [Laf:3 分钟快速接入三方应用](https://github.com/labring/laf)
- [Sealos:快速部署集群应用](https://github.com/labring/sealos)
- [One API:多模型管理,支持 Azure、文心一言等](https://github.com/songquanpeng/one-api)
- [TuShan:5 分钟搭建后台管理系统](https://github.com/msgbyte/tushan)

<a href="#readme">
<img src="https://img.shields.io/badge/-返回顶部-7d09f1.svg" alt="#" align="right">
</a>


## 🌿 第三方生态

- [COW 个人微信/企微机器人](https://doc.tryfastgpt.ai/docs/use-cases/external-integration/onwechat/)
- [AI Proxy:国内模型聚合服务](https://sealos.run/aiproxy/?k=fastgpt-github/)
- [SiliconCloud (硅基流动) —— 开源模型在线体验平台](https://cloud.siliconflow.cn/i/TR9Ym0c4)
- [COW 个人微信/企微机器人](https://doc.tryfastgpt.ai/docs/use-cases/external-integration/onwechat/)

<a href="#readme">
<img src="https://img.shields.io/badge/-返回顶部-7d09f1.svg" alt="#" align="right">
</a>

## 🏘️ 社区交流群

扫码加入飞书话题群:

![](https://oss.laf.run/otnvvf-imgs/fastgpt-feishu1.png)

<a href="#readme">
<img src="https://img.shields.io/badge/-返回顶部-7d09f1.svg" alt="#" align="right">
Expand Down
26 changes: 26 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 安全策略

## 漏洞报告

如果您发现了 FastGPT 的安全漏洞,请按照以下步骤进行报告:

1. **报告方式**
发送邮件至:[email protected]
请备注版本以及您的 GitHub 账号

3. **响应时间**
- 我们会在 48 小时内确认收到您的报告
- 一般在 3 个工作日内给出初步评估结果

4. **漏洞处理流程**
- 确认漏洞:我们会验证漏洞的存在性和影响范围
- 修复开发:针对已确认的漏洞进行修复
- 版本发布:在下一个版本更新中发布安全补丁
- 公开披露:在修复完成后,我们会在更新日志中公布相关信息

5. **注意事项**
- 在漏洞未修复前,请勿公开披露漏洞详情
- 我们欢迎负责任的漏洞披露
- 对于重大贡献者,我们会在项目致谢名单中提及

感谢您为 FastGPT 的安全性做出贡献!
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ services:
# fastgpt
sandbox:
container_name: sandbox
image: ghcr.io/labring/fastgpt-sandbox:v4.8.22 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.22 # 阿里云
image: ghcr.io/labring/fastgpt-sandbox:v4.9.0 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.0 # 阿里云
networks:
- fastgpt
restart: always
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.8.22 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.22 # 阿里云
image: ghcr.io/labring/fastgpt:v4.9.0 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.9.0 # 阿里云
ports:
- 3000:3000
networks:
Expand All @@ -137,10 +137,13 @@ services:
- FE_DOMAIN=
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
- DEFAULT_ROOT_PSW=1234
# AI模型的API地址哦。务必加 /v1。这里默认填写了OneApi的访问地址。
- OPENAI_BASE_URL=http://oneapi:3000/v1
# AI模型的API Key。(这里默认填写了OneAPI的快速默认key,测试通后,务必及时修改)
- CHAT_API_KEY=sk-fastgpt
# AI Proxy 的地址,如果配了该地址,优先使用
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
- AIPROXY_API_TOKEN=aiproxy
# 模型中转地址(如果用了 AI Proxy,下面 2 个就不需要了,旧版 OneAPI 用户,使用下面的变量)
# - OPENAI_BASE_URL=http://oneapi:3000/v1
# - CHAT_API_KEY=sk-fastgpt
# 数据库最大连接数
- DB_MAX_LINK=30
# 登录凭证密钥
Expand Down Expand Up @@ -170,48 +173,52 @@ services:
volumes:
- ./config.json:/app/data/config.json

# oneapi
mysql:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mysql:8.0.36 # 阿里云
# image: mysql:8.0.36
container_name: mysql
restart: always
ports:
- 3306:3306
# AI Proxy
aiproxy:
image: 'ghcr.io/labring/sealos-aiproxy-service:latest'
container_name: aiproxy
restart: unless-stopped
depends_on:
aiproxy_pg:
condition: service_healthy
networks:
- fastgpt
command: --default-authentication-plugin=mysql_native_password
environment:
# 默认root密码,仅首次运行有效
MYSQL_ROOT_PASSWORD: oneapimmysql
MYSQL_DATABASE: oneapi
# 对应 fastgpt 里的AIPROXY_API_TOKEN
- ADMIN_KEY=aiproxy
# 错误日志详情保存时间(小时)
- LOG_DETAIL_STORAGE_HOURS=1
# 数据库连接地址
- SQL_DSN=postgres://postgres:aiproxy@aiproxy_pg:5432/aiproxy
# 最大重试次数
- RetryTimes=3
# 不需要计费
- BILLING_ENABLED=false
# 不需要严格检测模型
- DISABLE_MODEL_CONFIG=true
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/api/status']
interval: 5s
timeout: 5s
retries: 10
aiproxy_pg:
image: pgvector/pgvector:0.8.0-pg15 # docker hub
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:v0.8.0-pg15 # 阿里云
restart: unless-stopped
container_name: aiproxy_pg
volumes:
- ./mysql:/var/lib/mysql
oneapi:
container_name: oneapi
image: ghcr.io/songquanpeng/one-api:v0.6.7
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/one-api:v0.6.6 # 阿里云
ports:
- 3001:3000
depends_on:
- mysql
- ./aiproxy_pg:/var/lib/postgresql/data
networks:
- fastgpt
restart: always
environment:
# mysql 连接参数
- SQL_DSN=root:oneapimmysql@tcp(mysql:3306)/oneapi
# 登录凭证加密密钥
- SESSION_SECRET=oneapikey
# 内存缓存
- MEMORY_CACHE_ENABLED=true
# 启动聚合更新,减少数据交互频率
- BATCH_UPDATE_ENABLED=true
# 聚合更新时长
- BATCH_UPDATE_INTERVAL=10
# 初始化的 root 密钥(建议部署完后更改,否则容易泄露)
- INITIAL_ROOT_TOKEN=fastgpt
volumes:
- ./oneapi:/data
TZ: Asia/Shanghai
POSTGRES_USER: postgres
POSTGRES_DB: aiproxy
POSTGRES_PASSWORD: aiproxy
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres', '-d', 'aiproxy']
interval: 5s
timeout: 5s
retries: 10
networks:
fastgpt:
Loading
Loading