mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00

* feat: stop toolCall and rename some field. (#46) * perf: node delete tip;pay tip * fix: toolCall cannot save child answer * feat: stop tool * fix: team modal * fix feckbackMoal auth bug (#47) * 简单的支持提示词运行tool。优化workflow模板 (#49) * remove templates * fix: request body undefined * feat: prompt tool run * feat: workflow tamplates modal * perf: plugin start * 4.7 (#50) * fix docker-compose download url (#994) original code is a bad url with '404 NOT FOUND' return. fix docker-compose download url, add 'v' before docker-compose version * Update ai_settings.md (#1000) * Update configuration.md * Update configuration.md * Fix history in classifyQuestion and extract modules (#1012) * Fix history in classifyQuestion and extract modules * Add chatValue2RuntimePrompt import and update text formatting * flow controller to packages * fix: rerank select * modal ui * perf: modal code path * point not sufficient * feat: http url support variable * fix http key * perf: prompt * perf: ai setting modal * simple edit ui --------- Co-authored-by: entorick <entorick11@qq.com> Co-authored-by: liujianglc <liujianglc@163.com> Co-authored-by: Fengrui Liu <liufengrui.work@bytedance.com> * fix team share redirect to login (#51) * feat: support openapi import plugins (#48) * feat: support openapi import plugins * feat: import from url * fix: add body params parse * fix build * fix * fix * fix * tool box ui (#52) * fix: training queue * feat: simple edit tool select * perf: simple edit dataset prompt * fix: chatbox tool ux * feat: quote prompt module * perf: plugin tools sign * perf: model avatar * tool selector ui * feat: max histories * perf: http plugin import (#53) * perf: plugin http import * chatBox ui * perf: name * fix: Node template card (#54) * fix: ts * setting modal * package * package * feat: add plugins search (#57) * feat: add plugins search * perf: change http plugin header input * Yjl (#56) * perf: prompt tool call * perf: chat box ux * doc * doc * price tip * perf: tool selector * ui' * fix: vector queue * fix: empty tool and empty response * fix: empty msg * perf: pg index * perf: ui tip * doc * tool tip --------- Co-authored-by: yst <77910600+yu-and-liu@users.noreply.github.com> Co-authored-by: entorick <entorick11@qq.com> Co-authored-by: liujianglc <liujianglc@163.com> Co-authored-by: Fengrui Liu <liufengrui.work@bytedance.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
61 lines
2.2 KiB
Markdown
61 lines
2.2 KiB
Markdown
---
|
||
title: "使用 Gapier 快速导入Agent工具"
|
||
description: "FastGPT 使用 Gapier 快速导入Agent工具"
|
||
icon: "build"
|
||
draft: false
|
||
toc: true
|
||
weight: 501
|
||
---
|
||
|
||
FastGPT V4.7版本加入了工具调用,可以兼容 GPTs 的 Actions。这意味着,你可以直接导入兼容 GPTs 的 Agent 工具。
|
||
|
||
Gapier 是一个在线 GPTs Actions工具,提供了50多种现成工具,并且每天有免费额度进行测试,方便用户试用,官方地址为:[https://gapier.com/](https://gapier.com/)。
|
||
|
||

|
||
|
||
现在,我们开始把 Gapier 的工具导入到 FastGPT 中。
|
||
|
||
## 1. 创建插件
|
||
|
||
| Step1 | Step2 | Step3 |
|
||
| --- | --- | --- |
|
||
|  |  | 登录[Gapier](https://gapier.com/) 复制相关参数 <br>  |
|
||
| Step4 | Step5 | Step6 |
|
||
| 自定义请求头: Authorization<br>请求值: Bearer 复制的key <br>  |  |  |
|
||
|
||
创建完后,如果需要变更,无需重新创建,只需要修改对应参数即可,会自动做差值比较更新。
|
||
|
||

|
||
|
||
## 2. 应用绑定工具
|
||
|
||
### 简易模式
|
||
|
||
| Step1 | Step2 |
|
||
| --- | --- | --- |
|
||
|  |  |
|
||
| Step3 | Step4 |
|
||
|  |  |
|
||
|
||
### 高级编排
|
||
|
||
| Step1 | Step2 |
|
||
| --- | --- | --- |
|
||
|  |  |
|
||
| Step3 | Step4 |
|
||
|  |  |
|
||
|
||

|
||
|
||
## 3. 工具调用说明
|
||
|
||
### 不同模型的区别
|
||
|
||
不同模型调用工具采用不同的方法,有些模型支持 toolChoice 和 functionCall 效果会更好。不支持这两种方式的模型通过提示词调用,但是效果不是很好,并且为了保证顺利调用,FastGPT内置的提示词,仅支持每次调用一个工具。
|
||
|
||
具体哪些模型支持 functionCall 可以官网查看(当然,也需要OneAPI支持),同时需要调整模型配置文件中的对应字段(详细看配置字段说明)。
|
||
|
||
线上版用户,可以在模型选择时,看到是否支持函数调用的标识。
|
||
|
||

|