Commit a266bba5 by Archer Committed by GitHub

doc (#5203)

parent 3a5d725e
......@@ -45,7 +45,7 @@ export type YuqueServer = {
### 2. 创建 Hook 文件
每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含 5 个函数需要完成。
每个第三方文档库都会采用 Hook 的方式来实现一套 API 接口的维护,Hook 里包含 4 个函数需要完成。
- 在`FastGPT\packages\service\core\dataset\apiDataset\`下创建一个文档库的文件夹,然后在文件夹下创建一个`api.ts`文件
- 在`api.ts`文件中,需要完成 5 个函数的定义,分别是:
......@@ -53,7 +53,6 @@ export type YuqueServer = {
- `getFileContent`:获取文件内容/文件链接
- `getFileDetail`:获取文件详情信息
- `getFilePreviewUrl`:获取原文预览地址
- `getFileId`: 获取原文件真实Id
### 3. 添加知识库类型
......
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