diff --git a/.github/workflows/fastgpt-home-image.yml b/.github/workflows/fastgpt-home-image.yml deleted file mode 100644 index 681bcc96b..000000000 --- a/.github/workflows/fastgpt-home-image.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Build Home page images in Personal warehouse -on: - workflow_dispatch: - push: - paths: - - 'projects/home/**' - branches: - - 'main' -jobs: - build-fastgpt-images: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - driver-opts: network=host - - name: Cache Docker layers - uses: actions/cache@v3 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GH_PAT }} - - name: Set DOCKER_REPO_TAGGED based on branch or tag - run: | - echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt-home:latest" >> $GITHUB_ENV - - name: Build and publish image for main branch or tag push event - env: - DOCKER_REPO_TAGGED: ${{ env.DOCKER_REPO_TAGGED }} - run: | - docker buildx build \ - --build-arg name=home \ - --label "org.opencontainers.image.source=https://github.com/${{ github.repository_owner }}/FastGPT" \ - --label "org.opencontainers.image.description=fastgpt-home image" \ - --push \ - --cache-from=type=local,src=/tmp/.buildx-cache \ - --cache-to=type=local,dest=/tmp/.buildx-cache \ - -t ${DOCKER_REPO_TAGGED} \ - -f Dockerfile \ - . diff --git a/README.md b/README.md index d97ecbeb5..96fdd130c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-
+
-
+
-
+
- 部分系统不兼容,导致页面崩溃。如果可以,请联系作者,反馈下具体操作和页面。 大部分是 苹果 的
- safari 浏览器导致,可以尝试更换 chrome
- 浏览器。或者是因为开了中文翻译导致,请检查并关闭中文翻译。
-
@@ -36,7 +36,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
## 🛸 在线使用
-- 🌐 国内版:[ai.fastgpt.in](https://ai.fastgpt.in/)
+- 🌐 国内临时可访问:[fastgpt.in](https://fastgpt.in/)
- 🌍 海外版:[fastgpt.run](https://fastgpt.run/)
| | |
@@ -52,25 +52,24 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
`1` 强大的可视化编排,轻松构建 AI 应用
- [x] 提供简易模式,无需操作编排
- - [x] 用户对话前引导,全局字符串变量
- - [x] 知识库搜索
- - [x] 多 LLM 模型对话
- - [x] 文本内容提取成结构化数据
- - [x] HTTP 扩展
- - [ ] 嵌入 [Laf](https://github.com/labring/laf),实现在线编写 HTTP 模块
- [x] 对话下一步指引
- - [ ] 对话多路线选择
+ - [x] 工作流编排
+ - [x] 对话下一步指引
- [x] 源文件引用追踪
- [x] 模块封装,实现多级复用
+ - [ ] 嵌入 [Laf](https://github.com/labring/laf),实现在线编写 HTTP 模块
+ - [ ] 混合检索 & 重排
`2` 丰富的知识库预处理
- [x] 多库复用,混用
- [x] chunk 记录修改和删除
- - [x] 支持手动输入,直接分段,QA 拆分导入
- - [x] 支持 url 读取、CSV 批量导入
- [x] 支持知识库单独设置向量模型
- [x] 源文件存储
- - [ ] 文件学习 Agent
+ - [x] 支持手动输入,直接分段,QA 拆分导入
+ - [x] 支持 pdf、word、txt、md 等常用文件,支持 url 读取、CSV 批量导入
+ - [ ] 支持 HTML、csv、PPT、Excel 导入
+ - [ ] 支持差异性文件同步
+ - [ ] 更多的数据预处理方案
`3` 多种效果测试渠道
- [x] 知识库单点搜索测试
diff --git a/README_en.md b/README_en.md
index 35b806f2f..368e281d5 100644
--- a/README_en.md
+++ b/README_en.md
@@ -1,6 +1,6 @@
+
# FastGPT
@@ -15,13 +15,13 @@ FastGPT is a knowledge-based Q&A system built on the LLM, offers out-of-the-box
-
+
-
+
@@ -36,7 +36,8 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
## 🛸 Use Cloud Services
-[fastgpt.run](https://fastgpt.run/)
+Cloud: [fastgpt.in](https://fastgpt.in/)
+
| | |
| ---------------------------------- | ---------------------------------- |
|  |  |
@@ -105,11 +106,11 @@ Project tech stack: NextJs + TS + ChakraUI + Mongo + Postgres (Vector plugin)
Give it a 2-4 minute wait after deployment as it sets up the database. Initially, it might be a tad slow since we're using the basic settings.
-- [Getting Started with Local Development](https://doc.fastgpt.run/docs/development)
-- [Deploying FastGPT](https://doc.fastgpt.run/docs/installation)
-- [Guide on System Configs](https://doc.fastgpt.run/docs/installation/reference)
-- [Configuring Multiple Models](https://doc.fastgpt.run/docs/installation/reference/models)
-- [Version Updates & Upgrades](https://doc.fastgpt.run/docs/installation/upgrading)
+- [Getting Started with Local Development](https://doc.fastgpt.in/docs/development)
+- [Deploying FastGPT](https://doc.fastgpt.in/docs/installation)
+- [Guide on System Configs](https://doc.fastgpt.in/docs/installation/reference)
+- [Configuring Multiple Models](https://doc.fastgpt.in/docs/installation/reference/models)
+- [Version Updates & Upgrades](https://doc.fastgpt.in/docs/installation/upgrading)
diff --git a/README_ja.md b/README_ja.md
index 5946c227f..ce7c597c2 100644
--- a/README_ja.md
+++ b/README_ja.md
@@ -1,6 +1,6 @@
-
+
-
+
@@ -36,7 +36,8 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
## 🛸 クラウドサービスの 利用
-[fastgpt.run](https://fastgpt.run/)
+[fastgpt.in](https://fastgpt.in/)
+
| | |
| ---------------------------------- | ---------------------------------- |
|  |  |
@@ -97,11 +98,11 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
デプロイ 後、データベースをセットアップするので、2~4分待 ってください。基本設定 を 使 っているので、最初 は 少 し 遅 いかもしれません。
-- [ローカル 開発入門](https://doc.fastgpt.run/docs/development)
-- [FastGPT のデプロイ](https://doc.fastgpt.run/docs/installation)
-- [システム 設定 ガイド](https://doc.fastgpt.run/docs/installation/reference)
-- [複数 モデルの 設定](https://doc.fastgpt.run/docs/installation/reference/models)
-- [バージョン 更新 とアップグレード](https://doc.fastgpt.run/docs/installation/upgrading)
+- [ローカル 開発入門](https://doc.fastgpt.in/docs/development)
+- [FastGPT のデプロイ](https://doc.fastgpt.in/docs/installation)
+- [システム 設定 ガイド](https://doc.fastgpt.in/docs/installation/reference)
+- [複数 モデルの 設定](https://doc.fastgpt.in/docs/installation/reference/models)
+- [バージョン 更新 とアップグレード](https://doc.fastgpt.in/docs/installation/upgrading)
diff --git a/docSite/assets/imgs/cloud_price1.jpg b/docSite/assets/imgs/cloud_price1.jpg
new file mode 100644
index 000000000..9a58ef2b2
Binary files /dev/null and b/docSite/assets/imgs/cloud_price1.jpg differ
diff --git a/docSite/assets/imgs/oneapi-step1.jpg b/docSite/assets/imgs/oneapi-step1.jpg
new file mode 100644
index 000000000..904c5c2c0
Binary files /dev/null and b/docSite/assets/imgs/oneapi-step1.jpg differ
diff --git a/docSite/assets/imgs/oneapi-step1.png b/docSite/assets/imgs/oneapi-step1.png
deleted file mode 100644
index 3275014fd..000000000
Binary files a/docSite/assets/imgs/oneapi-step1.png and /dev/null differ
diff --git a/docSite/assets/imgs/sealos3.jpg b/docSite/assets/imgs/sealos3.jpg
new file mode 100644
index 000000000..896cd9fb1
Binary files /dev/null and b/docSite/assets/imgs/sealos3.jpg differ
diff --git a/docSite/assets/imgs/sealos3.png b/docSite/assets/imgs/sealos3.png
deleted file mode 100644
index 2b1657529..000000000
Binary files a/docSite/assets/imgs/sealos3.png and /dev/null differ
diff --git a/docSite/content/docs/agreement/open-source.md b/docSite/content/docs/agreement/open-source.md
index f927708d8..a5c3407ae 100644
--- a/docSite/content/docs/agreement/open-source.md
+++ b/docSite/content/docs/agreement/open-source.md
@@ -11,7 +11,7 @@ FastGPT 项目在 Apache License 2.0 许可下开源,同时包含以下附加
+ FastGPT 允许被用于商业化,例如作为其他应用的“后端即服务”使用,或者作为应用开发平台提供给企业。然而,当满足以下条件时,必须联系作者获得商业许可:
- + 多租户 SaaS 服务:除非获得 FastGPT 的明确书面授权,否则不得使用 fastgpt.run 的源码来运营与 fastgpt.run 服务版类似的多租户 SaaS 服务。
+ + 多租户 SaaS 服务:除非获得 FastGPT 的明确书面授权,否则不得使用 fastgpt.in 的源码来运营与 fastgpt.in 服务版类似的多租户 SaaS 服务。
+ LOGO 及版权信息:在使用 FastGPT 的过程中,不得移除或修改 FastGPT 控制台内的 LOGO 或版权信息。
请通过电子邮件 yujinlong@sealos.io 联系我们咨询许可事宜。
diff --git a/docSite/content/docs/commercial/intro.md b/docSite/content/docs/commercial/intro.md
index d0307b891..8ddf9bfde 100644
--- a/docSite/content/docs/commercial/intro.md
+++ b/docSite/content/docs/commercial/intro.md
@@ -7,55 +7,52 @@ toc: true
weight: 1001
---
-## FastGPT 线上服务
+## 简介
-[按线上标准计费](/docs/pricing)即可。 地址: https://fastgpt.run
+FastGPT 商业版是基于 FastGPT 开源版的增强版本,增加了一些独有的功能。只需安装一个商业版镜像,并在开源版基础上填写对应的内网地址,即可快速使用商业版。
-## 商业版
-
-商业版最终交付版本功能与 https://fastgpt.run 完全一致,品牌内容可自定义,商业授权时长同`License`有效期。
-
-{{% alert icon="🤖" context="warning" %}}
-商业版比开源版额外增加的内容:(目前计划)
-
-1. 可自定义 title 和 logo
-2. 用户注册,支付 (已有微信扫码支付,后续会补充支付方式)
-3. API 访问限制,可配置:额度、过期时间
-4. 分享链接限制,可配置:额度、过期时间、QPM、身份验证Hook
-5. 内容审核(目前对接了百度)
-6. 团队空间 (计划)
-7. 完善的 OpenAPI(计划)
-8. 高级编排额外插件(计划)
-9. 后台管理系统
- a. 查询:用户、支付、应用、知识库
- b. 变更:用户
- c. 新增:用户
-{{% /alert %}}
-
-### 商业版定价
-
-#### 交付费用
-
-+ 使用 [Sealos 公有云](https://sealos.io)部署:1万元/年/套 (无部署费用。赠送 8000 sealos 公有云额度,可用于 FastGPT 或其他云资源)。
-+ 渠道商使用 Sealos 部署:返现 20% 成交额。
-+ 私有服务器部署:2万元/年/套
-+ 渠道商私有服务器部署:1.3万元/年/套(渠道商合同单独约谈,累计 5 套以上可签)
-
-#### 用户注册数量费用(按注册量算,不计量分享和 API)
+## 功能差异
{{< table "table-hover table-striped-columns" >}}
-| 最大用户数量 | 费用 元/年 |
-| ------------ | ---------- |
-| 100 | 0 |
-| 5000 | 5000 |
-| 2万 | 18000 |
-| 5万 | 35000 |
-| 20万 | 100000 |
+| | 开源版 | 商业版 | 线上版 |
+| ---- | ---- | ---- | ---- |
+| 应用管理与高级编排 | ✅ | ✅ | ✅ |
+| 文档知识库 | ✅ | ✅ | ✅ |
+| 外部使用 | ✅ | ✅ | ✅ |
+| 自定义版权信息 | ❌ | ✅ | ✅ |
+| 多租户与支付 | ❌ | ✅ | ✅ |
+| 团队空间 | ❌ | ✅ | ✅ |
+| 外部使用限制 | ❌ | ✅ | ✅ |
+| 内容审核 | ❌ | ✅ | ✅ |
+| web站点同步 | ❌ | ✅ | ✅ |
+| 管理后台 | ❌ | ✅ | ✅ |
+| Saas服务商业授权 | ❌ | ✅ | ✅ |
+| 图片知识库 | ❌ | 设计中 | 设计中 |
+| 自动规划召回 | ❌ | 设计中 | 设计中 |
{{< /table >}}
-#### 总费用
+## 商业版软件价格
+
+FastGPT 商业版软件根据不同的部署方式,分为 4 类收费模式。下面列举各种部署方式一些常规内容,如仍有问题,可[联系咨询](https://fael3z0zfze.feishu.cn/share/base/form/shrcnRxj3utrzjywsom96Px4sud)
+
+**共有服务**
+
+1. Saas 商业授权许可 - 在商业版有效期内,可提供任意形式的商业服务。
+2. 首次免费帮助部署。
+3. 优先问题工单处理。
+
+**特有服务**
+
+{{< table "table-hover table-striped-columns" >}}
+| 部署方式 | 特有服务 | 上线时长 | 价格 |
+| ---- | ---- | ---- | ---- |
+| Sealos公有云部署 | 1. 6个版本的升级服务。
2. 赠送 8000 元 Sealos 云资源额度。 | 半天 | 10000元/年 |
+| Sealos全托管 | 1. 有效期内免费升级。
2. 免运维服务&数据库。
3. 赠送 10000 元 Sealos 云资源额度。 | 半天 | 3000元起/月(3个月起)
或
30000元起/年 |
+| 自有服务器-单机版 | 1. 6个版本的升级服务。 | 14天内 | 60000元/套(不限时长) |
+| 自有服务器-Sealos版 | 1. 6个版本的升级服务。 | 14天内 | 150000元/套(不限时长)|
+
+{{< /table >}}
-总费用 = 商业版交付费用 + 用户数量费用
## 技术支持
@@ -63,15 +60,15 @@ weight: 1001
根据需求,定制实现某个需求的编排功能,最终会交付一个应用编排。可根据实际情况商讨。
-### 技术服务费(定开、部署、维护等)
+### 技术服务费(定开、维护、迁移、三方接入等)
-2000元/人/天
+2000 ~ 3000元/人/天
-### 更新费用
+### 更新升级费用
-大部分更新,重新拉镜像就可以了,不需要执行额外操作。
+大部分更新升级,重新拉镜像,然后执行一下初始化脚本就可以了,不需要执行额外操作。
-复杂更新可参考文档自行更新;或付费支持,标准与技术服务费一致。
+跨版本更新或复杂更新可参考文档自行更新;或付费支持,标准与技术服务费一致。
## 联系方式
@@ -80,11 +77,11 @@ weight: 1001
## QA
1. 如何交付?
-
+
完整版应用 = 开源版镜像 + 商业版镜像
- 我们会提供一个商业版镜像给你使用,该镜像需要一个 License 启动,License 有效期为 1 年。此外,还会提供一个简单的后台管理系统(目前只设置了简单的查询功能)
+ 我们会提供一个商业版镜像给你使用,该镜像需要一个 License 启动。
2. 二次开发如何操作?
-
+
可自行修改开源版代码进行二次开发,不支持修改商业版镜像。
\ No newline at end of file
diff --git a/docSite/content/docs/development/docker.md b/docSite/content/docs/development/docker.md
index 4cc5c4b6d..395cec724 100644
--- a/docSite/content/docs/development/docker.md
+++ b/docSite/content/docs/development/docker.md
@@ -9,11 +9,13 @@ weight: 707
## 推荐配置
+{{< table "table-hover table-striped-columns" >}}
| 环境 | 推荐配置(单节点) |
| ---- | ---- |
-| 测试 | 2c2g 起 |
-| 100w 组向量 | 4c16g起 |
-| 500w 组向量 | 16c64g起 |
+| 测试 | 2c2g |
+| 100w 组向量 | 4c16g |
+| 500w 组向量 | 16c64g |
+{{< /table >}}
### 1. 准备好代理环境(国外服务器可忽略)
diff --git a/docSite/content/docs/development/intro.md b/docSite/content/docs/development/intro.md
index 45a2e53ba..48dc639f1 100644
--- a/docSite/content/docs/development/intro.md
+++ b/docSite/content/docs/development/intro.md
@@ -7,12 +7,12 @@ toc: true
weight: 705
---
-本文档介绍了如何设置开发环境以构建和测试 [FastGPT](https://fastgpt.run)。
+本文档介绍了如何设置开发环境以构建和测试 [FastGPT](https://fastgpt.in)。
## 前置依赖项
-您需要在计算机上安装和配置以下依赖项才能构建 [FastGPT](https://fastgpt.run):
+您需要在计算机上安装和配置以下依赖项才能构建 [FastGPT](https://fastgpt.in):
- [Git](http://git-scm.com/)
- [Docker](https://www.docker.com/)(构建镜像)
diff --git a/docSite/content/docs/development/one-api.md b/docSite/content/docs/development/one-api.md
index ff020fc2e..2dcc14e08 100644
--- a/docSite/content/docs/development/one-api.md
+++ b/docSite/content/docs/development/one-api.md
@@ -29,7 +29,7 @@ SqlLite 版本不支持多实例,适合个人小流量使用,但是价格非
**2. 打开 AppLaunchpad(应用管理) 工具**
-
+
**3. 点击创建新应用**
diff --git a/docSite/content/docs/development/openapi/auth.md b/docSite/content/docs/development/openapi/auth.md
index 0ad26b6b5..47674405d 100644
--- a/docSite/content/docs/development/openapi/auth.md
+++ b/docSite/content/docs/development/openapi/auth.md
@@ -32,7 +32,7 @@ FastGPT 的 API Key **有 2 类**,一类是全局通用的 key (无法直接
OpenAPI 中,所有的接口都通过 Header.Authorization 进行鉴权。
```
-baseUrl: "https://fastgpt.run/api"
+baseUrl: "https://api.fastgpt.in/api"
headers: {
Authorization: "Bearer {{apikey}}"
}
@@ -41,7 +41,7 @@ headers: {
**发起应用对话示例**
```sh
-curl --location --request POST 'https://fastgpt.run/api/v1/chat/completions' \
+curl --location --request POST 'https://api.fastgpt.in/api/v1/chat/completions' \
--header 'Authorization: Bearer fastgpt-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
diff --git a/docSite/content/docs/development/openapi/chat.md b/docSite/content/docs/development/openapi/chat.md
index 1c30ab25f..3b685359d 100644
--- a/docSite/content/docs/development/openapi/chat.md
+++ b/docSite/content/docs/development/openapi/chat.md
@@ -25,7 +25,7 @@ weight: 852
{{< markdownify >}}
```bash
-curl --location --request POST 'https://fastgpt.run/api/v1/chat/completions' \
+curl --location --request POST 'https://api.fastgpt.in/api/v1/chat/completions' \
--header 'Authorization: Bearer fastgpt-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
diff --git a/docSite/content/docs/development/openapi/dataset.md b/docSite/content/docs/development/openapi/dataset.md
index 6788a18a4..61a4dffa3 100644
--- a/docSite/content/docs/development/openapi/dataset.md
+++ b/docSite/content/docs/development/openapi/dataset.md
@@ -18,7 +18,7 @@ weight: 853
**请求示例**
```bash
-curl --location --request POST 'https://fastgpt.run/api/support/wallet/bill/createTrainingBill' \
+curl --location --request POST 'https://api.fastgpt.in/api/support/wallet/bill/createTrainingBill' \
--header 'Authorization: Bearer {{apikey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
@@ -46,7 +46,7 @@ data 为 billId,可用于添加知识库数据时进行账单聚合。
{{< markdownify >}}
```bash
-curl --location --request POST 'https://fastgpt.run/api/core/dataset/data/pushData' \
+curl --location --request POST 'https://api.fastgpt.in/api/core/dataset/data/pushData' \
--header 'Authorization: Bearer apikey' \
--header 'Content-Type: application/json' \
--data-raw '{
@@ -162,7 +162,7 @@ A2:
{{< markdownify >}}
```bash
-curl --location --request POST 'https://fastgpt.run/api/core/dataset/searchTest' \
+curl --location --request POST 'https://api.fastgpt.in/api/core/dataset/searchTest' \
--header 'Authorization: Bearer fastgpt-xxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
diff --git a/docSite/content/docs/development/openapi/share.md b/docSite/content/docs/development/openapi/share.md
index 93df0f216..9c10fd1ff 100644
--- a/docSite/content/docs/development/openapi/share.md
+++ b/docSite/content/docs/development/openapi/share.md
@@ -53,9 +53,9 @@ weight: 860
在分享链接的地址中,增加一个额外的参数: authToken。例如:
-原始的链接:`https://fastgpt.run/chat/share?shareId=648aaf5ae121349a16d62192`
+原始的链接:`https://share.fastgpt.in/chat/share?shareId=648aaf5ae121349a16d62192`
-完整链接: `https://fastgpt.run/chat/share?shareId=648aaf5ae121349a16d62192&authToken=userid12345`
+完整链接: `https://share.fastgpt.in/chat/share?shareId=648aaf5ae121349a16d62192&authToken=userid12345`
这个`authToken`通常是你系统生成的用户唯一凭证(Token之类的)。FastGPT 会在鉴权接口的`body`中携带 token={{authToken}} 的参数。
@@ -342,9 +342,9 @@ export default async function (ctx: FunctionContext) {
### 3. 修改分享链接参数
-源分享链接:`https://fastgpt.run/chat/share?shareId=64be36376a438af0311e599c`
+源分享链接:`https://share.fastgpt.in/chat/share?shareId=64be36376a438af0311e599c`
-修改后:`https://fastgpt.run/chat/share?shareId=64be36376a438af0311e599c&authToken=fastgpt`
+修改后:`https://share.fastgpt.in/chat/share?shareId=64be36376a438af0311e599c&authToken=fastgpt`
### 4. 测试效果
diff --git a/docSite/content/docs/development/proxy/nginx.md b/docSite/content/docs/development/proxy/nginx.md
index fb6ef1879..33c364602 100644
--- a/docSite/content/docs/development/proxy/nginx.md
+++ b/docSite/content/docs/development/proxy/nginx.md
@@ -15,7 +15,7 @@ weight: 951
打开 「应用管理」,点击「新建应用」:
-
+

### 填写基本配置
diff --git a/docSite/content/docs/intro.md b/docSite/content/docs/intro.md
index ffab9c580..9a8e99b8f 100644
--- a/docSite/content/docs/intro.md
+++ b/docSite/content/docs/intro.md
@@ -10,7 +10,7 @@ weight: -10
FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景!
{{% alert icon="🤖 " context="success" %}}
-FastGPT 在线使用:[https://ai.fastgpt.in](https://ai.fastgpt.in)
+FastGPT 在线使用:[https://fastgpt.in](https://fastgpt.in)
{{% /alert %}}
| | |
diff --git a/docSite/content/docs/pricing.md b/docSite/content/docs/pricing.md
index a45f772fa..15387f1dd 100644
--- a/docSite/content/docs/pricing.md
+++ b/docSite/content/docs/pricing.md
@@ -15,27 +15,6 @@ weight: 1200
## FastGPT 线上计费
-使用: [https://fastgpt.run](https://fastgpt.run) 或 [https://ai.fastgpt.in](https://ai.fastgpt.in) 只需仅按 Tokens 使用数量扣费即可。可在 账号-使用记录 中查看具体使用情况,以下是详细的计费表(最新定价以线上表格为准,可在点击充值后实时获取):
+[https://fastgpt.in](https://fastgpt.in) 采用按量计费的模式,最新计费标准可在 `账号-计费标准` 查看。同时可以在 `账号-使用记录` 中查看具体使用情况,
-{{< table "table-hover table-striped-columns" >}}
-| 计费项 | 价格: 元/ 1K tokens(包含上下文) |
-| ---------------------- | --------------------------------- |
-| 知识库 - 索引 | 0.002 |
-| 文件 QA 拆分 | 0.03 |
-| FastAI-4k - 对话 | 0.015 |
-| FastAI-16k - 对话 | 0.03 |
-| FastAI-Plus-8k - 对话 | 0.45 |
-| FastAI-Plus-32k - 对话 | 0.85 |
-| 文心一言 - 对话 | 0.012 |
-| 星火2.0 - 对话 | 0.01 |
-| chatglm_pro - 对话 | 0.01 |
-| 通义千问 - 对话 | 0.01 |
-| 问题分类 | 0.03 |
-| 内容提取 | 0.03 |
-| 下一步指引 | 0.015 |
-
-{{< /table >}}
-
-{{% alert context="warning" %}}
-FastAI-Plus(也就是 GPT-4,你懂得) 系列模型 OpenAI 的定价高于 3.5 **几十倍**。如果您使用模型的场景字数较多,使用 FastAI-Plus 模型将产生非常大的消耗,FastAI-Plus 模型分为两个版本,8K token 内容上限和 32K token 内容上限,这两个版本请求响应的价格均不同。
-{{% /alert %}}
\ No newline at end of file
+
diff --git a/docSite/content/docs/use-cases/feishu.md b/docSite/content/docs/use-cases/feishu.md
index 4b43b756f..dc494d84d 100644
--- a/docSite/content/docs/use-cases/feishu.md
+++ b/docSite/content/docs/use-cases/feishu.md
@@ -37,7 +37,7 @@ FastGPT 集成**重点参数:**
#上一步FastGPT的OpenAPI 秘钥
OPENAI_KEY=fastgpt-z51pkjqm9nrk03a1rx2funoy
#调用OpenAI的BaseUrl要换成FastGPT的
-API_URL=https://fastgpt.run/api/openapi
+API_URL=https://api.fastgpt.in/api/openapi
```
## 3. 创建飞书机器人
diff --git a/docSite/content/docs/use-cases/onwechat.md b/docSite/content/docs/use-cases/onwechat.md
index 1dea57c16..408f0f484 100644
--- a/docSite/content/docs/use-cases/onwechat.md
+++ b/docSite/content/docs/use-cases/onwechat.md
@@ -26,7 +26,7 @@ weight: 504
## 3. 创建 docker-compose.yml 文件
-只需要修改 `OPEN_AI_API_KEY` 和 `OPEN_AI_API_BASE` 两个环境变量即可。其中 `OPEN_AI_API_KEY` 为第一步获取的秘钥,`OPEN_AI_API_BASE` 为 FastGPT 的 OpenAPI 地址,例如:`https://fastgpt.run/api/v1`。
+只需要修改 `OPEN_AI_API_KEY` 和 `OPEN_AI_API_BASE` 两个环境变量即可。其中 `OPEN_AI_API_KEY` 为第一步获取的秘钥,`OPEN_AI_API_BASE` 为 FastGPT 的 OpenAPI 地址,例如:`https://api.fastgpt.in/api/v1`。
随便找一个目录,创建一个 docker-compose.yml 文件,将下面的代码复制进去。
@@ -40,7 +40,7 @@ services:
- seccomp:unconfined
environment:
OPEN_AI_API_KEY: 'fastgpt-z51pkjqm9nrk03a1rx2funoy'
- OPEN_AI_API_BASE: 'https://fastgpt.run/api/v1'
+ OPEN_AI_API_BASE: 'https://api.fastgpt.in/api/v1'
MODEL: 'gpt-3.5-turbo'
CHANNEL_TYPE: 'wx'
PROXY: ''
diff --git a/docSite/content/docs/use-cases/openapi.md b/docSite/content/docs/use-cases/openapi.md
index 445314499..76b4bef80 100644
--- a/docSite/content/docs/use-cases/openapi.md
+++ b/docSite/content/docs/use-cases/openapi.md
@@ -25,7 +25,7 @@ Tips: 安全起见,你可以设置一个额度或者过期时间,放置 key
## 替换三方应用的变量
```bash
-OPENAI_API_BASE_URL: https://fastgpt.run/api (改成自己部署的域名)
+OPENAI_API_BASE_URL: https://api.fastgpt.in/api (改成自己部署的域名)
OPENAI_API_KEY = 上一步获取到的秘钥
```
diff --git a/files/deploy/fastgpt/clash/config.yaml b/files/deploy/fastgpt/clash/config.yaml
index 3b6529aa4..5a8a90c90 100644
--- a/files/deploy/fastgpt/clash/config.yaml
+++ b/files/deploy/fastgpt/clash/config.yaml
@@ -3,20 +3,41 @@ allow-lan: false
bind-address: '*'
mode: rule
log-level: warning
-dns:
- enable: true
- ipv6: false
- nameserver:
+dns:
+ enable: true
+ ipv6: false
+ nameserver:
- 8.8.8.8
- - 8.8.4.4
+ - 8.8.4.4
cache-size: 400
proxies:
-
+
proxy-groups:
- - { name: '♻️ 自动选择', type: url-test, proxies: [香港V02×1.5,ABC, 印度01, 台湾03, 新加坡02, 新加坡03, 日本01, 日本02, 新加坡01, 美国01, 美国02, 台湾01, 台湾02], url: 'https://api.openai.com', interval: 3600}
+ - {
+ name: '♻️ 自动选择',
+ type: url-test,
+ proxies:
+ [
+ 香港V02×1.5,
+ ABC,
+ 印度01,
+ 台湾03,
+ 新加坡02,
+ 新加坡03,
+ 日本01,
+ 日本02,
+ 新加坡01,
+ 美国01,
+ 美国02,
+ 台湾01,
+ 台湾02
+ ],
+ url: 'https://api.openai.com',
+ interval: 3600
+ }
rules:
- 'DOMAIN-SUFFIX,google.com,♻️ 自动选择'
- - 'DOMAIN-SUFFIX,ai.fastgpt.run,♻️ 自动选择'
+ - 'DOMAIN-SUFFIX,ai.fastgpt.in,♻️ 自动选择'
- 'DOMAIN-SUFFIX,openai.com,♻️ 自动选择'
- 'DOMAIN-SUFFIX,api.openai.com,♻️ 自动选择'
- - 'MATCH,DIRECT'
\ No newline at end of file
+ - 'MATCH,DIRECT'
diff --git a/packages/global/core/dataset/api.d.ts b/packages/global/core/dataset/api.d.ts
index ca1fb035b..0a482b543 100644
--- a/packages/global/core/dataset/api.d.ts
+++ b/packages/global/core/dataset/api.d.ts
@@ -26,6 +26,7 @@ export type CreateDatasetCollectionParams = {
fileId?: string;
rawLink?: string;
qaPrompt?: string;
+ rawTextLength?: number;
hashRawText?: string;
metadata?: Record~\.\[:]+)/g,Je=/(\.[^\s\+>~\.\[:]+)/g,Ye=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Ze=/(:[\w-]+\([^\)]*\))/gi,$e=/(:[^\s\+>~\.\[:]+)/g,et=/([^\s\+>~\.\[:]+)/g;function tt(e,t){var r=e.match(t);return r?[e.replace(t," "),r.length]:[e,0]}function rt(e){var t=[0,0,0],r=e.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,o=tt(r,Xe),s=(0,u.default)(o,2);r=s[0],n=s[1],t[1]+=n;var i=tt(r,We),a=(0,u.default)(i,2);r=a[0],n=a[1],t[0]+=n;var A=tt(r,Je),c=(0,u.default)(A,2);r=c[0],n=c[1],t[1]+=n;var l=tt(r,Ye),d=(0,u.default)(l,2);r=d[0],n=d[1],t[2]+=n;var f=tt(r,Ze),h=(0,u.default)(f,2);r=h[0],n=h[1],t[1]+=n;var p=tt(r,$e),m=(0,u.default)(p,2);r=m[0],n=m[1],t[1]+=n;var g=tt(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),et),y=(0,u.default)(g,2);return r=y[0],n=y[1],t[2]+=n,t.join("")}var nt=1e-8;function ot(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function st(e,t){return(e[0]*t[0]+e[1]*t[1])/(ot(e)*ot(t))}function it(e,t){return(e[0]*t[1]