Commit 14e22687 by Archer Committed by GitHub

4.8.10 test (#2411)

* update doc

* update doc

* update doc imgs
parent 61347d9a

294 KB | W: | H:

71.3 KB | W: | H:

docSite/assets/imgs/collection-tags-1.png
docSite/assets/imgs/collection-tags-1.png
docSite/assets/imgs/collection-tags-1.png
docSite/assets/imgs/collection-tags-1.png
  • 2-up
  • Swipe
  • Onion skin

310 KB | W: | H:

85.7 KB | W: | H:

docSite/assets/imgs/fileinpu-1.png
docSite/assets/imgs/fileinpu-1.png
docSite/assets/imgs/fileinpu-1.png
docSite/assets/imgs/fileinpu-1.png
  • 2-up
  • Swipe
  • Onion skin

572 KB | W: | H:

214 KB | W: | H:

docSite/assets/imgs/fileinpu-3.jpg
docSite/assets/imgs/fileinpu-3.jpg
docSite/assets/imgs/fileinpu-3.jpg
docSite/assets/imgs/fileinpu-3.jpg
  • 2-up
  • Swipe
  • Onion skin

254 KB | W: | H:

115 KB | W: | H:

docSite/assets/imgs/fileinpu-4.jpg
docSite/assets/imgs/fileinpu-4.jpg
docSite/assets/imgs/fileinpu-4.jpg
docSite/assets/imgs/fileinpu-4.jpg
  • 2-up
  • Swipe
  • Onion skin

558 KB | W: | H:

246 KB | W: | H:

docSite/assets/imgs/fileinpu-5.jpg
docSite/assets/imgs/fileinpu-5.jpg
docSite/assets/imgs/fileinpu-5.jpg
docSite/assets/imgs/fileinpu-5.jpg
  • 2-up
  • Swipe
  • Onion skin

403 KB | W: | H:

171 KB | W: | H:

docSite/assets/imgs/fileinpu-7.jpg
docSite/assets/imgs/fileinpu-7.jpg
docSite/assets/imgs/fileinpu-7.jpg
docSite/assets/imgs/fileinpu-7.jpg
  • 2-up
  • Swipe
  • Onion skin

300 KB | W: | H:

299 KB | W: | H:

docSite/assets/imgs/gpt-translate-example.png
docSite/assets/imgs/gpt-translate-example.png
docSite/assets/imgs/gpt-translate-example.png
docSite/assets/imgs/gpt-translate-example.png
  • 2-up
  • Swipe
  • Onion skin

300 KB | W: | H:

117 KB | W: | H:

docSite/assets/imgs/sealos-deploy1.jpg
docSite/assets/imgs/sealos-deploy1.jpg
docSite/assets/imgs/sealos-deploy1.jpg
docSite/assets/imgs/sealos-deploy1.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -29,8 +29,8 @@ FastGPT 商业版是基于 FastGPT 开源版的增强版本,增加了一些独 ...@@ -29,8 +29,8 @@ FastGPT 商业版是基于 FastGPT 开源版的增强版本,增加了一些独
| web站点同步 | ❌ | ✅ | ✅ | | web站点同步 | ❌ | ✅ | ✅ |
| 管理后台 | ❌ | ✅ | 不需要 | | 管理后台 | ❌ | ✅ | 不需要 |
| 增强训练模式 | ❌ | ✅ | ✅ | | 增强训练模式 | ❌ | ✅ | ✅ |
| 第三方应用快速接入(飞书、公众号) | ❌ | ✅ | ✅ |
| 图片知识库 | ❌ | 设计中 | 设计中 | | 图片知识库 | ❌ | 设计中 | 设计中 |
| 自动规划召回 | ❌ | 设计中 | 设计中 |
| 对话日志运营分析 | ❌ | 设计中 | 设计中 | | 对话日志运营分析 | ❌ | 设计中 | 设计中 |
| 完整商业授权 | ❌ | ✅ | ✅ | | 完整商业授权 | ❌ | ✅ | ✅ |
{{< /table >}} {{< /table >}}
......
...@@ -60,6 +60,8 @@ Tips: 可以通过点击上下文按键查看完整的上下文组成,便于 ...@@ -60,6 +60,8 @@ Tips: 可以通过点击上下文按键查看完整的上下文组成,便于
### 引用模板和提示词设计 ### 引用模板和提示词设计
简易模式已移除该功能,仅在工作流中可配置,可点击工作流中`AI对话节点`内,知识库引用旁边的`setting icon`进行配置。随着模型的增强,这部分功能将逐步弱化。
引用模板和引用提示词通常是成对出现,引用提示词依赖引用模板。 引用模板和引用提示词通常是成对出现,引用提示词依赖引用模板。
FastGPT 知识库采用 QA 对(不一定都是问答格式,仅代表两个变量)的格式存储,在转义成字符串时候会根据**引用模板**来进行格式化。知识库包含多个可用变量: q, a, sourceId(数据的ID), index(第n个数据), source(数据的集合名、文件名),score(距离得分,0-1) 可以通过 {{q}} {{a}} {{sourceId}} {{index}} {{source}} {{score}} 按需引入。下面一个模板例子: FastGPT 知识库采用 QA 对(不一定都是问答格式,仅代表两个变量)的格式存储,在转义成字符串时候会根据**引用模板**来进行格式化。知识库包含多个可用变量: q, a, sourceId(数据的ID), index(第n个数据), source(数据的集合名、文件名),score(距离得分,0-1) 可以通过 {{q}} {{a}} {{sourceId}} {{index}} {{source}} {{score}} 按需引入。下面一个模板例子:
......
...@@ -4,9 +4,11 @@ description: "FastGPT 接入飞书机器人教程" ...@@ -4,9 +4,11 @@ description: "FastGPT 接入飞书机器人教程"
icon: "chat" icon: "chat"
draft: false draft: false
toc: true toc: true
weight: 507 weight: 111
--- ---
从 4.8.10 版本起,FastGPT 商业版支持直接接入飞书机器人,无需额外的 API。
## 1. 申请飞书应用 ## 1. 申请飞书应用
开一个免费的测试企业更方便进行调试。 开一个免费的测试企业更方便进行调试。
......
--- ---
title: "对接第三方 GPT 应用" title: "通过 API 访问应用"
description: "通过 OpenAI 兼容的 API 对接第三方应用" description: "通过 API 访问 FastGPT 应用"
icon: "model_training" icon: "model_training"
draft: false draft: false
toc: true toc: true
weight: 505 weight: 112
--- ---
在 FastGPT 中,你可以为每一个应用创建多个 API 密钥,用于访问应用的 API 接口。每个密钥仅能访问一个应用。完整的接口可以[查看应用对话接口](/docs/development/openapi/chat)
## 获取 API 秘钥 ## 获取 API 秘钥
依次选择应用 -> 「API访问」,然后点击「API 密钥」来创建密钥。 依次选择应用 -> 「API访问」,然后点击「API 密钥」来创建密钥。
...@@ -15,7 +17,7 @@ weight: 505 ...@@ -15,7 +17,7 @@ weight: 505
密钥需要自己保管好,一旦关闭就无法再复制密钥,只能创建新密钥再复制。 密钥需要自己保管好,一旦关闭就无法再复制密钥,只能创建新密钥再复制。
{{% /alert %}} {{% /alert %}}
![](/imgs/fastgpt-api.jpg) ![](/imgs/fastgpt-api1.jpg)
{{% alert icon="🍅" context="success" %}} {{% alert icon="🍅" context="success" %}}
Tips: 安全起见,你可以设置一个额度或者过期时间,放置 key 被滥用。 Tips: 安全起见,你可以设置一个额度或者过期时间,放置 key 被滥用。
......
...@@ -8,9 +8,9 @@ weight: 852 ...@@ -8,9 +8,9 @@ weight: 852
--- ---
{{% alert icon="🤖 " context="success" %}} {{% alert icon="🤖 " context="success" %}}
该接口的 API Key 需使用`应用特定的 key`,否则会报错。 * 该接口的 API Key 需使用`应用特定的 key`,否则会报错。
有些包调用时,`BaseUrl`需要添加`v1`路径,有些不需要,如果出现404情况,可补充`v1`重试。 * 有些包调用时,`BaseUrl`需要添加`v1`路径,有些不需要,如果出现404情况,可补充`v1`重试。
{{% /alert %}} {{% /alert %}}
## 发起对话(简易应用和工作流) ## 发起对话(简易应用和工作流)
...@@ -18,7 +18,7 @@ weight: 852 ...@@ -18,7 +18,7 @@ weight: 852
对话接口兼容`GPT`的接口!如果你的项目使用的是标准的`GPT`官方接口,可以直接通过修改`BaseUrl``Authorization`来访问 FastGpt 应用,不过需要注意下面几个规则: 对话接口兼容`GPT`的接口!如果你的项目使用的是标准的`GPT`官方接口,可以直接通过修改`BaseUrl``Authorization`来访问 FastGpt 应用,不过需要注意下面几个规则:
{{% alert icon="🤖 " context="success" %}} {{% alert icon="🤖 " context="success" %}}
* 传入的`model``temperature`等参数字段均无效,这些字段由编排决定。 * 传入的`model``temperature`等参数字段均无效,这些字段由编排决定,不会根据 API 参数改变
* 不会返回实际消耗`Token`值,如果需要,可以设置`detail=true`,并手动计算 `responseData` 里的`tokens`值。 * 不会返回实际消耗`Token`值,如果需要,可以设置`detail=true`,并手动计算 `responseData` 里的`tokens`值。
{{% /alert %}} {{% /alert %}}
...@@ -457,6 +457,6 @@ event取值: ...@@ -457,6 +457,6 @@ event取值:
## 使用案例 ## 使用案例
- [接入 NextWeb/ChatGPT web 等应用](/docs/use-cases/openapi) - [接入 NextWeb/ChatGPT web 等应用](/docs/course/openapi)
- [接入 onwechat](/docs/use-cases/onwechat) - [接入 onwechat](/docs/use-cases/onwechat)
- [接入 飞书](/docs/use-cases/feishu) - [接入 飞书](/docs/course/feishu)
\ No newline at end of file \ No newline at end of file
...@@ -11,7 +11,7 @@ weight: 504 ...@@ -11,7 +11,7 @@ weight: 504
[chatgpt-on-wechat GitHub 地址](https://github.com/zhayujie/chatgpt-on-wechat) [chatgpt-on-wechat GitHub 地址](https://github.com/zhayujie/chatgpt-on-wechat)
由于 FastGPT 的 API 接口和 OpenAI 的规范一致,可以无需变更原来的应用即可使用 FastGPT 上编排好的应用。API 使用可参考 [这篇文章](/docs/use-cases/openapi/)。编排示例,可参考 [高级编排介绍](/docs/workflow/intro) 由于 FastGPT 的 API 接口和 OpenAI 的规范一致,可以无需变更原来的应用即可使用 FastGPT 上编排好的应用。API 使用可参考 [这篇文章](/docs/course/openapi/)。编排示例,可参考 [高级编排介绍](/docs/workflow/intro)
## 1. 获取 OpenAPI 秘钥 ## 1. 获取 OpenAPI 秘钥
......
...@@ -76,7 +76,7 @@ const FeiShuEditModal = ({ ...@@ -76,7 +76,7 @@ const FeiShuEditModal = ({
<Box color="myGray.600">{t('publish:feishu_api')}</Box> <Box color="myGray.600">{t('publish:feishu_api')}</Box>
{feConfigs?.docUrl && ( {feConfigs?.docUrl && (
<Link <Link
href={feConfigs.openAPIDocUrl || getDocPath('/docs/use-cases/feishu')} href={feConfigs.openAPIDocUrl || getDocPath('/docs/course/feishu')}
target={'_blank'} target={'_blank'}
ml={2} ml={2}
color={'primary.500'} color={'primary.500'}
......
...@@ -78,7 +78,7 @@ const OffiAccountEditModal = ({ ...@@ -78,7 +78,7 @@ const OffiAccountEditModal = ({
<Box color="myGray.600">{t('publish:official_account.params')}</Box> <Box color="myGray.600">{t('publish:official_account.params')}</Box>
{feConfigs?.docUrl && ( {feConfigs?.docUrl && (
<Link <Link
href={feConfigs.openAPIDocUrl || getDocPath('/docs/use-cases/official_account')} href={feConfigs.openAPIDocUrl || getDocPath('/docs/course/official_account')}
target={'_blank'} target={'_blank'}
ml={2} ml={2}
color={'primary.500'} color={'primary.500'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment