@@ -39,7 +39,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
## 🛸 Use Cloud Services
-Cloud: [fastgpt.in](https://fastgpt.in/)
+Cloud: [tryfastgpt.ai](https://tryfastgpt.ai/)
| | |
| ---------------------------------- | ---------------------------------- |
@@ -113,16 +113,16 @@ 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.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)
+- [Getting Started with Local Development](https://doc.tryfastgpt.ai/docs/development)
+- [Deploying FastGPT](https://doc.tryfastgpt.ai/docs/installation)
+- [Guide on System Configs](https://doc.tryfastgpt.ai/docs/installation/reference)
+- [Configuring Multiple Models](https://doc.tryfastgpt.ai/docs/installation/reference/models)
+- [Version Updates & Upgrades](https://doc.tryfastgpt.ai/docs/installation/upgrading)
## 🏘️ Community & support
-+ 🌐 Visit the [FastGPT website](https://fastgpt.in/) for full documentation and useful links.
++ 🌐 Visit the [FastGPT website](https://tryfastgpt.ai/) for full documentation and useful links.
+ 💬 Join our [Discord server](https://discord.gg/mp68xkZn2Q) is to chat with FastGPT developers and other FastGPT users. This is a good place to learn about FastGPT, ask questions, and share your experiences.
+ 🐞 Create [GitHub Issues](https://github.com/labring/FastGPT/issues/new/choose) for bug reports and feature requests.
diff --git a/README_ja.md b/README_ja.md
index a9f4b619251..8ead634dc77 100644
--- a/README_ja.md
+++ b/README_ja.md
@@ -1,6 +1,6 @@
-
+
# FastGPT
@@ -15,13 +15,13 @@ FastGPT は、LLM 上 に 構築 された 知識 ベースの Q&A システム
-
+
-
+
-
+
@@ -36,7 +36,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
## 🛸 クラウドサービスの 利用
-[fastgpt.in](https://fastgpt.in/)
+[tryfastgpt.ai](https://tryfastgpt.ai/)
| | |
| ---------------------------------- | ---------------------------------- |
@@ -98,11 +98,11 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
デプロイ 後、データベースをセットアップするので、2~4分待 ってください。基本設定 を 使 っているので、最初 は 少 し 遅 いかもしれません。
-- [ローカル 開発入門](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)
+- [ローカル 開発入門](https://doc.tryfastgpt.ai/docs/development)
+- [FastGPT のデプロイ](https://doc.tryfastgpt.ai/docs/installation)
+- [システム 設定 ガイド](https://doc.tryfastgpt.ai/docs/installation/reference)
+- [複数 モデルの 設定](https://doc.tryfastgpt.ai/docs/installation/reference/models)
+- [バージョン 更新 とアップグレード](https://doc.tryfastgpt.ai/docs/installation/upgrading)
diff --git a/docSite/content/zh-cn/docs/agreement/open-source.md b/docSite/content/zh-cn/docs/agreement/open-source.md
index fcdb9d6f969..8bd37235352 100644
--- a/docSite/content/zh-cn/docs/agreement/open-source.md
+++ b/docSite/content/zh-cn/docs/agreement/open-source.md
@@ -11,7 +11,7 @@ FastGPT 项目在 Apache License 2.0 许可下开源,同时包含以下附加
+ FastGPT 允许被用于商业化,例如作为其他应用的“后端即服务”使用,或者作为应用开发平台提供给企业。然而,当满足以下条件时,必须联系作者获得商业许可:
- + 多租户 SaaS 服务:除非获得 FastGPT 的明确书面授权,否则不得使用 fastgpt.in 的源码来运营与 fastgpt.in 服务类似的多租户 SaaS 服务。
+ + 多租户 SaaS 服务:除非获得 FastGPT 的明确书面授权,否则不得使用 tryfastgpt.ai 的源码来运营与 tryfastgpt.ai 服务类似的多租户 SaaS 服务。
+ LOGO 及版权信息:在使用 FastGPT 的过程中,不得移除或修改 FastGPT 控制台内的 LOGO 或版权信息。
请通过电子邮件 yujinlong@sealos.io 联系我们咨询许可事宜。
diff --git a/docSite/content/zh-cn/docs/course/openapi.md b/docSite/content/zh-cn/docs/course/openapi.md
index 898e20138bf..5f473789303 100644
--- a/docSite/content/zh-cn/docs/course/openapi.md
+++ b/docSite/content/zh-cn/docs/course/openapi.md
@@ -27,7 +27,7 @@ Tips: 安全起见,你可以设置一个额度或者过期时间,放置 key
## 替换三方应用的变量
```bash
-OPENAI_API_BASE_URL: https://api.fastgpt.in/api (改成自己部署的域名)
+OPENAI_API_BASE_URL: https://api.tryfastgpt.ai/api (改成自己部署的域名)
OPENAI_API_KEY = 上一步获取到的密钥
```
diff --git a/docSite/content/zh-cn/docs/course/websync.md b/docSite/content/zh-cn/docs/course/websync.md
index b3f70a1f133..8374f068c4a 100644
--- a/docSite/content/zh-cn/docs/course/websync.md
+++ b/docSite/content/zh-cn/docs/course/websync.md
@@ -18,7 +18,7 @@ Web 站点同步利用爬虫的技术,可以通过一个入口网站,自动
Tips: 国内的媒体站点基本不可用,公众号、csdn、知乎等。可以通过终端发送`curl`请求检测是否为静态站点,例如:
```bash
-curl https://doc.fastgpt.in/docs/intro/
+curl https://doc.tryfastgpt.ai/docs/intro/
```
## 如何使用
diff --git a/docSite/content/zh-cn/docs/development/configuration.md b/docSite/content/zh-cn/docs/development/configuration.md
index 652a1293b30..4d24415045c 100644
--- a/docSite/content/zh-cn/docs/development/configuration.md
+++ b/docSite/content/zh-cn/docs/development/configuration.md
@@ -13,9 +13,7 @@ weight: 708
这个配置文件中包含了系统参数和各个模型配置:
-## 4.6.8+ 版本新配置文件
-
-llm模型全部合并
+## 4.6.8+ 版本新配置文件示例
```json
{
@@ -29,16 +27,16 @@ llm模型全部合并
},
"llmModels": [
{
- "model": "gpt-3.5-turbo", // 模型名(对应OneAPI中渠道的模型名)
- "name": "gpt-3.5-turbo", // 别名
+ "model": "gpt-4o-mini", // 模型名(对应OneAPI中渠道的模型名)
+ "name": "gpt-4o-mini", // 模型别名
"avatar": "/imgs/model/openai.svg", // 模型的logo
- "maxContext": 16000, // 最大上下文
- "maxResponse": 4000, // 最大回复
- "quoteMaxToken": 13000, // 最大引用内容
+ "maxContext": 125000, // 最大上下文
+ "maxResponse": 16000, // 最大回复
+ "quoteMaxToken": 120000, // 最大引用内容
"maxTemperature": 1.2, // 最大温度
- "charsPointsPrice": 0, // n积分/1k token(商业版)
+ "charsPointsPrice": 0, // n积分/1k token(商业版)
"censor": false, // 是否开启敏感校验(商业版)
- "vision": false, // 是否支持图片输入
+ "vision": true, // 是否支持图片输入
"datasetProcess": true, // 是否设置为知识库处理模型(QA),务必保证至少有一个为true,否则知识库会报错
"usedInClassify": true, // 是否用于问题分类(务必保证至少有一个为true)
"usedInExtractFields": true, // 是否用于内容提取(务必保证至少有一个为true)
@@ -49,19 +47,19 @@ llm模型全部合并
"customCQPrompt": "", // 自定义文本分类提示词(不支持工具和函数调用的模型
"customExtractPrompt": "", // 自定义内容提取提示词
"defaultSystemChatPrompt": "", // 对话默认携带的系统提示词
- "defaultConfig":{} // 请求API时,挟带一些默认配置(比如 GLM4 的 top_p)
+ "defaultConfig": {} // 请求API时,挟带一些默认配置(比如 GLM4 的 top_p)
},
{
- "model": "gpt-4-0125-preview",
- "name": "gpt-4-turbo",
+ "model": "gpt-4o",
+ "name": "gpt-4o",
"avatar": "/imgs/model/openai.svg",
"maxContext": 125000,
"maxResponse": 4000,
- "quoteMaxToken": 100000,
+ "quoteMaxToken": 120000,
"maxTemperature": 1.2,
"charsPointsPrice": 0,
"censor": false,
- "vision": false,
+ "vision": true,
"datasetProcess": false,
"usedInClassify": true,
"usedInExtractFields": true,
@@ -72,30 +70,61 @@ llm模型全部合并
"customCQPrompt": "",
"customExtractPrompt": "",
"defaultSystemChatPrompt": "",
- "defaultConfig":{}
+ "defaultConfig": {}
},
{
- "model": "gpt-4-vision-preview",
- "name": "gpt-4-vision",
+ "model": "o1-mini",
+ "name": "o1-mini",
"avatar": "/imgs/model/openai.svg",
- "maxContext": 128000,
+ "maxContext": 125000,
"maxResponse": 4000,
- "quoteMaxToken": 100000,
+ "quoteMaxToken": 120000,
"maxTemperature": 1.2,
"charsPointsPrice": 0,
"censor": false,
- "vision": true,
+ "vision": false,
"datasetProcess": false,
- "usedInClassify": false,
- "usedInExtractFields": false,
- "usedInToolCall": false,
- "usedInQueryExtension": false,
- "toolChoice": true,
+ "usedInClassify": true,
+ "usedInExtractFields": true,
+ "usedInToolCall": true,
+ "usedInQueryExtension": true,
+ "toolChoice": false,
"functionCall": false,
"customCQPrompt": "",
"customExtractPrompt": "",
"defaultSystemChatPrompt": "",
- "defaultConfig":{}
+ "defaultConfig": {
+ "temperature": 1,
+ "max_tokens": null,
+ "stream": false
+ }
+ },
+ {
+ "model": "o1-preview",
+ "name": "o1-preview",
+ "avatar": "/imgs/model/openai.svg",
+ "maxContext": 125000,
+ "maxResponse": 4000,
+ "quoteMaxToken": 120000,
+ "maxTemperature": 1.2,
+ "charsPointsPrice": 0,
+ "censor": false,
+ "vision": false,
+ "datasetProcess": false,
+ "usedInClassify": true,
+ "usedInExtractFields": true,
+ "usedInToolCall": true,
+ "usedInQueryExtension": true,
+ "toolChoice": false,
+ "functionCall": false,
+ "customCQPrompt": "",
+ "customExtractPrompt": "",
+ "defaultSystemChatPrompt": "",
+ "defaultConfig": {
+ "temperature": 1,
+ "max_tokens": null,
+ "stream": false
+ }
}
],
"vectorModels": [
@@ -107,9 +136,30 @@ llm模型全部合并
"defaultToken": 700, // 默认文本分割时候的 token
"maxToken": 3000, // 最大 token
"weight": 100, // 优先训练权重
- "defaultConfig":{}, // 自定义额外参数。例如,如果希望使用 embedding3-large 的话,可以传入 dimensions:1024,来返回1024维度的向量。(目前必须小于1536维度)
+ "defaultConfig": {}, // 自定义额外参数。例如,如果希望使用 embedding3-large 的话,可以传入 dimensions:1024,来返回1024维度的向量。(目前必须小于1536维度)
"dbConfig": {}, // 存储时的额外参数(非对称向量模型时候需要用到)
"queryConfig": {} // 参训时的额外参数
+ },
+ {
+ "model": "text-embedding-3-large",
+ "name": "text-embedding-3-large",
+ "avatar": "/imgs/model/openai.svg",
+ "charsPointsPrice": 0,
+ "defaultToken": 512,
+ "maxToken": 3000,
+ "weight": 100,
+ "defaultConfig": {
+ "dimensions": 1024
+ }
+ },
+ {
+ "model": "text-embedding-3-small",
+ "name": "text-embedding-3-small",
+ "avatar": "/imgs/model/openai.svg",
+ "charsPointsPrice": 0,
+ "defaultToken": 512,
+ "maxToken": 3000,
+ "weight": 100
}
],
"reRankModels": [],
diff --git a/docSite/content/zh-cn/docs/development/faq.md b/docSite/content/zh-cn/docs/development/faq.md
index 9bae37d4caa..dc167d49a20 100644
--- a/docSite/content/zh-cn/docs/development/faq.md
+++ b/docSite/content/zh-cn/docs/development/faq.md
@@ -121,4 +121,150 @@ OneAPI 的 API Key 配置错误,需要修改`OPENAI_API_KEY`环境变量,并
1. 模型服务不可用
2. 模型接口参数异常(温度、max token等可能不适配)
-3. ....
\ No newline at end of file
+3. ....
+
+
+## 四、常见模型问题
+
+### 报错 - 模型响应为空
+
+该错误是由于 stream 模式下,oneapi 直接结束了流请求,并且未返回任何内容导致。
+
+4.8.10 版本新增了错误日志,报错时,会在日志中打印出实际发送的 Body 参数,可以复制该参数后,通过 curl 向 oneapi 发起请求测试。
+
+由于 oneapi 在 stream 模式下,无法正确捕获错误,可以设置成 `stream=false` 后进行测试。
+
+### 如何测试模型是否支持工具调用
+
+需要模型提供商和 oneapi 同时支持工具调用才可使用,测试方法如下:
+
+1. 通过 `curl` 向 `oneapi` 发起第一轮 stream 模式的 tool 测试。
+
+```bash
+curl --location --request POST 'https://oneapi.xxx/v1/chat/completions' \
+--header 'Authorization: Bearer sk-xxxx' \
+--header 'Content-Type: application/json' \
+--data-raw '{
+ "model": "gpt-4o-mini",
+ "temperature": 0.01,
+ "max_completion_tokens": 8000,
+ "max_tokens": 8000,
+ "stream": true,
+ "messages": [
+ {
+ "role": "user",
+ "content": "几点了"
+ }
+ ],
+ "tools": [
+ {
+ "type": "function",
+ "function": {
+ "name": "hCVbIY",
+ "description": "获取用户当前时区的时间。",
+ "parameters": {
+ "type": "object",
+ "properties": {},
+ "required": []
+ }
+ }
+ }
+ ],
+ "tool_choice": "auto"
+}'
+```
+
+2. 检查响应参数
+
+如果能正常调用工具,会返回对应 `tool_calls` 参数。
+
+```json
+{
+ "id": "chatcmpl-A7kwo1rZ3OHYSeIFgfWYxu8X2koN3",
+ "object": "chat.completion.chunk",
+ "created": 1726412126,
+ "model": "gpt-4o-mini-2024-07-18",
+ "system_fingerprint": "fp_483d39d857",
+ "choices": [
+ {
+ "index": 0,
+ "delta": {
+ "role": "assistant",
+ "content": null,
+ "tool_calls": [
+ {
+ "index": 0,
+ "id": "call_0n24eiFk8OUyIyrdEbLdirU7",
+ "type": "function",
+ "function": {
+ "name": "mEYIcFl84rYC",
+ "arguments": ""
+ }
+ }
+ ],
+ "refusal": null
+ },
+ "logprobs": null,
+ "finish_reason": null
+ }
+ ],
+ "usage": null
+}
+```
+
+3. 通过 `curl` 向 `oneapi` 发起第二轮 stream 模式的 tool 测试。
+
+第二轮请求是把工具结果发送给模型。发起后会得到模型回答的结果。
+
+```bash
+curl --location --request POST 'https://oneapi.xxxx/v1/chat/completions' \
+--header 'Authorization: Bearer sk-xxx' \
+--header 'Content-Type: application/json' \
+--data-raw '{
+ "model": "gpt-4o-mini",
+ "temperature": 0.01,
+ "max_completion_tokens": 8000,
+ "max_tokens": 8000,
+ "stream": true,
+ "messages": [
+ {
+ "role": "user",
+ "content": "几点了"
+ },
+ {
+ "role": "assistant",
+ "tool_calls": [
+ {
+ "id": "kDia9S19c4RO",
+ "type": "function",
+ "function": {
+ "name": "hCVbIY",
+ "arguments": "{}"
+ }
+ }
+ ]
+ },
+ {
+ "tool_call_id": "kDia9S19c4RO",
+ "role": "tool",
+ "name": "hCVbIY",
+ "content": "{\n \"time\": \"2024-09-14 22:59:21 Sunday\"\n}"
+ }
+ ],
+ "tools": [
+ {
+ "type": "function",
+ "function": {
+ "name": "hCVbIY",
+ "description": "获取用户当前时区的时间。",
+ "parameters": {
+ "type": "object",
+ "properties": {},
+ "required": []
+ }
+ }
+ }
+ ],
+ "tool_choice": "auto"
+}'
+```
\ No newline at end of file
diff --git a/docSite/content/zh-cn/docs/development/intro.md b/docSite/content/zh-cn/docs/development/intro.md
index c4faba4dc94..e38d3c55639 100644
--- a/docSite/content/zh-cn/docs/development/intro.md
+++ b/docSite/content/zh-cn/docs/development/intro.md
@@ -7,11 +7,11 @@ toc: true
weight: 705
---
-本文档介绍了如何设置开发环境以构建和测试 [FastGPT](https://fastgpt.in),。
+本文档介绍了如何设置开发环境以构建和测试 [FastGPT](https://tryfastgpt.ai),。
## 前置依赖项
-您需要在计算机上安装和配置以下依赖项才能构建 [FastGPT](https://fastgpt.in):
+您需要在计算机上安装和配置以下依赖项才能构建 [FastGPT](https://tryfastgpt.ai):
- [Git](http://git-scm.com/)
- [Docker](https://www.docker.com/)(构建镜像)
diff --git a/docSite/content/zh-cn/docs/development/openapi/auth.md b/docSite/content/zh-cn/docs/development/openapi/auth.md
index cea42082521..13d2203b067 100644
--- a/docSite/content/zh-cn/docs/development/openapi/auth.md
+++ b/docSite/content/zh-cn/docs/development/openapi/auth.md
@@ -32,7 +32,7 @@ FastGPT 的 API Key **有 2 类**,一类是全局通用的 key (无法直接
OpenAPI 中,所有的接口都通过 Header.Authorization 进行鉴权。
```
-baseUrl: "https://api.fastgpt.in/api"
+baseUrl: "https://api.tryfastgpt.ai/api"
headers: {
Authorization: "Bearer {{apikey}}"
}
@@ -41,7 +41,7 @@ headers: {
**发起应用对话示例**
```sh
-curl --location --request POST 'https://api.fastgpt.in/api/v1/chat/completions' \
+curl --location --request POST 'https://api.tryfastgpt.ai/api/v1/chat/completions' \
--header 'Authorization: Bearer fastgpt-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
diff --git a/docSite/content/zh-cn/docs/development/openapi/chat.md b/docSite/content/zh-cn/docs/development/openapi/chat.md
index 19e436db62f..53b8dc88fa1 100644
--- a/docSite/content/zh-cn/docs/development/openapi/chat.md
+++ b/docSite/content/zh-cn/docs/development/openapi/chat.md
@@ -29,7 +29,7 @@ weight: 852
{{< markdownify >}}
```bash
-curl --location --request POST 'https://api.fastgpt.in/api/v1/chat/completions' \
+curl --location --request POST 'https://api.tryfastgpt.ai/api/v1/chat/completions' \
--header 'Authorization: Bearer fastgpt-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
diff --git a/docSite/content/zh-cn/docs/development/openapi/dataset.md b/docSite/content/zh-cn/docs/development/openapi/dataset.md
index d0fc0b50812..27a7f3f5adc 100644
--- a/docSite/content/zh-cn/docs/development/openapi/dataset.md
+++ b/docSite/content/zh-cn/docs/development/openapi/dataset.md
@@ -22,7 +22,7 @@ weight: 853
**新例子**
```bash
-curl --location --request POST 'https://api.fastgpt.in/api/support/wallet/usage/createTrainingUsage' \
+curl --location --request POST 'https://api.tryfastgpt.ai/api/support/wallet/usage/createTrainingUsage' \
--header 'Authorization: Bearer {{apikey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
@@ -34,7 +34,7 @@ curl --location --request POST 'https://api.fastgpt.in/api/support/wallet/usage/
**x例子**
```bash
-curl --location --request POST 'https://api.fastgpt.in/api/support/wallet/bill/createTrainingBill' \
+curl --location --request POST 'https://api.tryfastgpt.ai/api/support/wallet/bill/createTrainingBill' \
--header 'Authorization: Bearer {{apikey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
@@ -466,7 +466,7 @@ curl --location --request POST 'http://localhost:3000/api/core/dataset/collectio
--header 'Authorization: Bearer {{authorization}}' \
--header 'Content-Type: application/json' \
--data-raw '{
- "link":"https://doc.fastgpt.in/docs/course/quick-start/",
+ "link":"https://doc.tryfastgpt.ai/docs/course/quick-start/",
"datasetId":"6593e137231a2be9c5603ba7",
"parentId": null,
@@ -718,7 +718,7 @@ curl --location --request POST 'http://localhost:3000/api/core/dataset/collectio
"tmbId": "65422be6aa44b7da77729ec9",
"type": "link",
"name": "快速上手 | FastGPT",
- "rawLink": "https://doc.fastgpt.in/docs/course/quick-start/",
+ "rawLink": "https://doc.tryfastgpt.ai/docs/course/quick-start/",
"updateTime": "2024-01-20T13:54:53.031Z",
"dataAmount": 3,
"trainingAmount": 0,
@@ -935,7 +935,7 @@ curl --location --request DELETE 'http://localhost:3000/api/core/dataset/collect
{{< markdownify >}}
```bash
-curl --location --request POST 'https://api.fastgpt.in/api/core/dataset/data/pushData' \
+curl --location --request POST 'https://api.tryfastgpt.ai/api/core/dataset/data/pushData' \
--header 'Authorization: Bearer apikey' \
--header 'Content-Type: application/json' \
--data-raw '{
@@ -1272,7 +1272,7 @@ curl --location --request DELETE 'http://localhost:3000/api/core/dataset/data/de
{{< markdownify >}}
```bash
-curl --location --request POST 'https://api.fastgpt.in/api/core/dataset/searchTest' \
+curl --location --request POST 'https://api.tryfastgpt.ai/api/core/dataset/searchTest' \
--header 'Authorization: Bearer fastgpt-xxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
diff --git a/docSite/content/zh-cn/docs/development/openapi/share.md b/docSite/content/zh-cn/docs/development/openapi/share.md
index f65ddcd0d8d..730e8565edd 100644
--- a/docSite/content/zh-cn/docs/development/openapi/share.md
+++ b/docSite/content/zh-cn/docs/development/openapi/share.md
@@ -53,9 +53,9 @@ weight: 860
在分享链接的地址中,增加一个额外的参数: authToken。例如:
-原始的链接:`https://share.fastgpt.in/chat/share?shareId=648aaf5ae121349a16d62192`
+原始的链接:`https://share.tryfastgpt.ai/chat/share?shareId=648aaf5ae121349a16d62192`
-完整链接: `https://share.fastgpt.in/chat/share?shareId=648aaf5ae121349a16d62192&authToken=userid12345`
+完整链接: `https://share.tryfastgpt.ai/chat/share?shareId=648aaf5ae121349a16d62192&authToken=userid12345`
这个`authToken`通常是你系统生成的用户唯一凭证(Token之类的)。FastGPT 会在鉴权接口的`body`中携带 token={{authToken}} 的参数。
@@ -387,9 +387,9 @@ export default async function (ctx: FunctionContext) {
### 3. 修改分享链接参数
-源分享链接:`https://share.fastgpt.in/chat/share?shareId=64be36376a438af0311e599c`
+源分享链接:`https://share.tryfastgpt.ai/chat/share?shareId=64be36376a438af0311e599c`
-修改后:`https://share.fastgpt.in/chat/share?shareId=64be36376a438af0311e599c&authToken=fastgpt`
+修改后:`https://share.tryfastgpt.ai/chat/share?shareId=64be36376a438af0311e599c&authToken=fastgpt`
### 4. 测试效果
diff --git a/docSite/content/zh-cn/docs/development/sealos.md b/docSite/content/zh-cn/docs/development/sealos.md
index ca7e14a5b94..eaebf7305ec 100644
--- a/docSite/content/zh-cn/docs/development/sealos.md
+++ b/docSite/content/zh-cn/docs/development/sealos.md
@@ -89,7 +89,7 @@ FastGPT 商业版共包含了2个应用(fastgpt, fastgpt-plus)和2个数据
点击右侧的详情,可以查看对应应用的详细信息。
### 如何更新/升级 FastGPT
-[升级脚本文档](https://doc.fastgpt.in/docs/development/upgrading/)先看下文档,看下需要升级哪个版本。注意,不要跨版本升级!!!!!
+[升级脚本文档](https://doc.tryfastgpt.ai/docs/development/upgrading/)先看下文档,看下需要升级哪个版本。注意,不要跨版本升级!!!!!
例如,目前是4.5 版本,要升级到4.5.1,就先把镜像版本改成v4.5.1,执行一下升级脚本,等待完成后再继续升级。如果目标版本不需要执行初始化,则可以跳过。
@@ -124,7 +124,7 @@ FastGPT 商业版共包含了2个应用(fastgpt, fastgpt-plus)和2个数据
![](/imgs/onsealos5.png)
-[配置文件参考](https://doc.fastgpt.in/docs/development/configuration/)
+[配置文件参考](https://doc.tryfastgpt.ai/docs/development/configuration/)
### 修改站点名称以及 favicon
修改应用的环境变量,增加
diff --git a/docSite/content/zh-cn/docs/development/upgrading/4810.md b/docSite/content/zh-cn/docs/development/upgrading/4810.md
index 6b694f2e8e5..66e033337c3 100644
--- a/docSite/content/zh-cn/docs/development/upgrading/4810.md
+++ b/docSite/content/zh-cn/docs/development/upgrading/4810.md
@@ -1,5 +1,5 @@
---
-title: 'V4.8.10'
+title: 'V4.8.10(需要初始化)'
description: 'FastGPT V4.8.10 更新说明'
icon: 'upgrade'
draft: false
diff --git a/docSite/content/zh-cn/docs/development/upgrading/4811.md b/docSite/content/zh-cn/docs/development/upgrading/4811.md
index 600023c2c68..18649f9a5a0 100644
--- a/docSite/content/zh-cn/docs/development/upgrading/4811.md
+++ b/docSite/content/zh-cn/docs/development/upgrading/4811.md
@@ -11,17 +11,85 @@ weight: 813
### 1. 做好数据备份
+### 2. 修改配置文件
+
+如需增加 openai o1 模型,可添加如下配置:
+
+```json
+{
+ "model": "o1-mini",
+ "name": "o1-mini",
+ "avatar": "/imgs/model/openai.svg",
+ "maxContext": 125000,
+ "maxResponse": 4000,
+ "quoteMaxToken": 120000,
+ "maxTemperature": 1.2,
+ "charsPointsPrice": 0,
+ "censor": false,
+ "vision": false,
+ "datasetProcess": false,
+ "usedInClassify": true,
+ "usedInExtractFields": true,
+ "usedInToolCall": true,
+ "usedInQueryExtension": true,
+ "toolChoice": false,
+ "functionCall": false,
+ "customCQPrompt": "",
+ "customExtractPrompt": "",
+ "defaultSystemChatPrompt": "",
+ "defaultConfig": {
+ "temperature": 1,
+ "max_tokens": null,
+ "stream": false
+ }
+},
+{
+ "model": "o1-preview",
+ "name": "o1-preview",
+ "avatar": "/imgs/model/openai.svg",
+ "maxContext": 125000,
+ "maxResponse": 4000,
+ "quoteMaxToken": 120000,
+ "maxTemperature": 1.2,
+ "charsPointsPrice": 0,
+ "censor": false,
+ "vision": false,
+ "datasetProcess": false,
+ "usedInClassify": true,
+ "usedInExtractFields": true,
+ "usedInToolCall": true,
+ "usedInQueryExtension": true,
+ "toolChoice": false,
+ "functionCall": false,
+ "customCQPrompt": "",
+ "customExtractPrompt": "",
+ "defaultSystemChatPrompt": "",
+ "defaultConfig": {
+ "temperature": 1,
+ "max_tokens": null,
+ "stream": false
+ }
+}
+```
+
-------
+### 3. 修改镜像 tag 并重启
+
+
+
## V4.8.11 更新说明
1.
-2. 新增 - 聊天记录滚动加载,不再只加载 30 条。
-3. 新增 - 工作流增加触摸板优先模式。
-4. 新增 - 沙盒增加字符串转 base64 全局方法。
-5. 优化 - 工作流嵌套层级限制 20 层,避免因编排不合理导致的无限死循环。
-5. 优化 - 工作流 handler 性能优化。
-6. 优化 - 工作流快捷键,避免调试测试时也会触发。
-7. 优化 - 流输出,切换 tab 时仍可以继续输出。
-8. 修复 - 知识库选择权限问题。
-9. 修复 - 空 chatId 发起对话,首轮携带用户选择时会异常。
+2. 新增 - 循环运行节点,可传入数组进行批量调用,目前最多支持 50 长度的数组串行执行。
+3. 新增 - 聊天记录滚动加载,不再只加载 30 条。
+4. 新增 - 工作流增加触摸板优先模式。
+5. 新增 - 沙盒增加字符串转 base64 全局方法。
+6. 新增 - 支持 Openai o1 模型,需增加模型的 `defaultConfig` 配置,覆盖 `temperature`、`max_tokens` 和 `stream`配置,o1 不支持 stream 模式, 详细可重新拉取 `config.json` 配置文件查看。
+7. 优化 - 工作流嵌套层级限制 20 层,避免因编排不合理导致的无限死循环。
+8. 优化 - 工作流 handler 性能优化。
+9. 优化 - 工作流快捷键,避免调试测试时也会触发。
+10. 优化 - 流输出,切换 tab 时仍可以继续输出。
+11. 修复 - 知识库选择权限问题。
+12. 修复 - 空 chatId 发起对话,首轮携带用户选择时会异常。
+13. 修复 - createDataset 接口,intro 为赋值。
diff --git a/docSite/content/zh-cn/docs/development/upgrading/intro.md b/docSite/content/zh-cn/docs/development/upgrading/intro.md
index 4ed36536fa0..1bd3d5b53a2 100644
--- a/docSite/content/zh-cn/docs/development/upgrading/intro.md
+++ b/docSite/content/zh-cn/docs/development/upgrading/intro.md
@@ -60,6 +60,11 @@ docker-compose up -d
## QA
+### 为什么需要初始化
+
+数据表出现大幅度变更,无法通过设置默认值,或复杂度较高时,会通过初始化来更新部分数据表字段。
+严格按初始化步骤进行操作,不会造成旧数据丢失。但在初始化过程中,如果数据量大,需要初始化的时间较长,这段时间可能会造成服务无法正常使用。
+
### {{host}} 是什么
{{}} 代表变量, {{host}}代表一个名为 host 的变量。指的是你服务器的域名或 IP。
@@ -85,4 +90,4 @@ sealos 中可以从上图左侧的环境变量中获取。
4. 修改镜像到4.6,执行初始化
5. .....
-逐一升级
\ No newline at end of file
+逐一升级
diff --git a/docSite/content/zh-cn/docs/intro.md b/docSite/content/zh-cn/docs/intro.md
index 40fbe36f430..5f060c939e6 100644
--- a/docSite/content/zh-cn/docs/intro.md
+++ b/docSite/content/zh-cn/docs/intro.md
@@ -10,7 +10,7 @@ weight: -10
FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景!
{{% alert icon="🤖 " context="success" %}}
-FastGPT 在线使用:[https://fastgpt.in](https://fastgpt.in)
+FastGPT 在线使用:[https://tryfastgpt.ai](https://tryfastgpt.ai)
{{% /alert %}}
| | |
diff --git a/docSite/content/zh-cn/docs/pricing.md b/docSite/content/zh-cn/docs/pricing.md
index 6dd14694673..b4bd054c609 100644
--- a/docSite/content/zh-cn/docs/pricing.md
+++ b/docSite/content/zh-cn/docs/pricing.md
@@ -6,7 +6,7 @@ draft: false
toc: true
weight: 1200
type: redirect
-target: https://cloud.fastgpt.in/price
+target: https://cloud.tryfastgpt.ai/price
---
-线上版价格请查看:[https://cloud.fastgpt.in/price](https://cloud.fastgpt.in/price)
\ No newline at end of file
+线上版价格请查看:[https://cloud.tryfastgpt.ai/price](https://cloud.tryfastgpt.ai/price)
\ No newline at end of file
diff --git a/docSite/content/zh-cn/docs/use-cases/onwechat.md b/docSite/content/zh-cn/docs/use-cases/onwechat.md
index bc8959bdd4b..51549b1ce03 100644
--- a/docSite/content/zh-cn/docs/use-cases/onwechat.md
+++ b/docSite/content/zh-cn/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://api.fastgpt.in/api/v1`。
+只需要修改 `OPEN_AI_API_KEY` 和 `OPEN_AI_API_BASE` 两个环境变量即可。其中 `OPEN_AI_API_KEY` 为第一步获取的密钥,`OPEN_AI_API_BASE` 为 FastGPT 的 OpenAPI 地址,例如:`https://api.tryfastgpt.ai/api/v1`。
随便找一个目录,创建一个 docker-compose.yml 文件,将下面的代码复制进去。
@@ -40,7 +40,7 @@ services:
- seccomp:unconfined
environment:
OPEN_AI_API_KEY: 'fastgpt-z51pkjqm9nrk03a1rx2funoy'
- OPEN_AI_API_BASE: 'https://api.fastgpt.in/api/v1'
+ OPEN_AI_API_BASE: 'https://api.tryfastgpt.ai/api/v1'
MODEL: 'gpt-3.5-turbo'
CHANNEL_TYPE: 'wx'
PROXY: ''
diff --git a/docSite/content/zh-cn/docs/workflow/modules/http.md b/docSite/content/zh-cn/docs/workflow/modules/http.md
index 19a26e52f0e..9b0dc84c8a5 100644
--- a/docSite/content/zh-cn/docs/workflow/modules/http.md
+++ b/docSite/content/zh-cn/docs/workflow/modules/http.md
@@ -70,7 +70,7 @@ HTTP 模块会向对应的地址发送一个 `HTTP` 请求,实际操作与 Pos
"array": [1, 2, 3],
"obj": {
"name": "FastGPT",
- "url": "https://fastgpt.in"
+ "url": "https://tryfastgpt.ai"
}
}
```
@@ -109,7 +109,7 @@ HTTP 模块会向对应的地址发送一个 `HTTP` 请求,实际操作与 Pos
"array2": [1, 2, 3],
"object": {
"name": "FastGPT",
- "url": "https://fastgpt.in"
+ "url": "https://tryfastgpt.ai"
}
}
```
diff --git a/docSite/hugo.toml b/docSite/hugo.toml
index e7f9b64c8d7..dd0b6cd3c4b 100644
--- a/docSite/hugo.toml
+++ b/docSite/hugo.toml
@@ -113,7 +113,7 @@ defaultContentLanguageInSubdir = false
# Link behaviour
intLinkTooltip = true # Enable a tooltip for internal links that displays info about the destination? default false
# extLinkNewTab = false # Open external links in a new Tab? default true
- logoLinkURL = "https://fastgpt.in/" # Set a custom URL destination for the top header logo link.
+ logoLinkURL = "https://tryfastgpt.ai/" # Set a custom URL destination for the top header logo link.
[params.flexsearch] # Parameters for FlexSearch
# enabled = true
diff --git a/packages/global/core/chat/adapt.ts b/packages/global/core/chat/adapt.ts
index 472dd290ab6..6eb712876ef 100644
--- a/packages/global/core/chat/adapt.ts
+++ b/packages/global/core/chat/adapt.ts
@@ -344,7 +344,7 @@ export const runtimePrompt2ChatsValue = (
return value;
};
-export const getSystemPrompt = (prompt?: string): ChatItemType[] => {
+export const getSystemPrompt_ChatItemType = (prompt?: string): ChatItemType[] => {
if (!prompt) return [];
return [
{
diff --git a/packages/global/core/workflow/constants.ts b/packages/global/core/workflow/constants.ts
index eab81402362..82e2ee20377 100644
--- a/packages/global/core/workflow/constants.ts
+++ b/packages/global/core/workflow/constants.ts
@@ -24,6 +24,7 @@ export enum WorkflowIOValueTypeEnum {
arrayNumber = 'arrayNumber',
arrayBoolean = 'arrayBoolean',
arrayObject = 'arrayObject',
+ arrayAny = 'arrayAny',
any = 'any',
chatHistory = 'chatHistory',
@@ -135,7 +136,17 @@ export enum NodeInputKeyEnum {
fileUrlList = 'fileUrlList',
// user select
- userSelectOptions = 'userSelectOptions'
+ userSelectOptions = 'userSelectOptions',
+
+ // loop
+ loopInputArray = 'loopInputArray',
+ childrenNodeIdList = 'childrenNodeIdList',
+ nodeWidth = 'nodeWidth',
+ nodeHeight = 'nodeHeight',
+ // loop start
+ loopStartInput = 'loopStartInput',
+ // loop end
+ loopEndInput = 'loopEndInput'
}
export enum NodeOutputKeyEnum {
@@ -178,7 +189,13 @@ export enum NodeOutputKeyEnum {
ifElseResult = 'ifElseResult',
//user select
- selectResult = 'selectResult'
+ selectResult = 'selectResult',
+
+ // loop
+ loopArray = 'loopArray',
+
+ // loop start
+ loopStartInput = 'loopStartInput'
}
export enum VariableInputEnum {
diff --git a/packages/global/core/workflow/node/constant.ts b/packages/global/core/workflow/node/constant.ts
index e34813f1b5e..34e2a6f1217 100644
--- a/packages/global/core/workflow/node/constant.ts
+++ b/packages/global/core/workflow/node/constant.ts
@@ -125,7 +125,10 @@ export enum FlowNodeTypeEnum {
textEditor = 'textEditor',
customFeedback = 'customFeedback',
readFiles = 'readFiles',
- userSelect = 'userSelect'
+ userSelect = 'userSelect',
+ loop = 'loop',
+ loopStart = 'loopStart',
+ loopEnd = 'loopEnd'
}
// node IO value type
@@ -162,6 +165,10 @@ export const FlowValueTypeMap = {
label: 'array