FastGPT V4.7 officially adds the tool calling function and is compatible with GPTs Actions. This means that you can directly import GPTs-compatible Agent tools !
Gapier is a set of online GPTs Actions tools that require no coding, are available out of the box, and have been adapted. It provides more than 50 ready-made tools, and has free quota for testing every day, making it convenient for users to try it out. The official address is: https:/ /gapier.com/
This article will introduce you to how to import Gapier's tools into FastGPT.
Create plugin
First you need to register and log in to Gapier:
Log in to the FastGPT console , click "Plug-ins" in the sidebar, then hover the mouse pointer over the "New" button, and click "HTTP Plug-in":
Click "URL Import":
Fill in the Gapier URL and add a custom request header:
- Parameter name: Authorization
- Parameter value: Bearer <Key in Gapier>
After setting the name and introduction of the plug-in, click Confirm and the Schema will be automatically pulled.
After the URL is imported, just click "Confirm Creation".
After creation, if changes are needed, there is no need to recreate it. You only need to modify the corresponding parameters, and the difference will be automatically compared and updated.
Bind application
After creating the plug-in, you can bind it in the application.
Easy configuration
If you are using simple configuration, then directly click "Select" on the right side of "Tool Call":
Find the tool you want to use and click "Open" on the right:
You can see that many plug-ins are imported here. You can choose to bind the corresponding plug-in according to your needs:
After binding is completed, click "Save and Preview".
Advanced orchestration
If you are using advanced orchestration, you need to drag in the "Tool Call" module first:
Then switch to "Team Plug-in", click or drag the plug-in you want to add to the workflow:
Connect the outputs under Tool Calls to the inputs of each plugin:
After the settings are completed, you can click the test button to test:
No problem, you can save it:
Tool call instructions
Different models use different methods to call tools. Some models support toolChoice and functionCall for better results. Models that do not support these two methods can be called through prompt words, but the effect is not very good. In order to ensure smooth call, FastGPT's built-in prompt words only support calling one tool at a time.
The specific models that support functionCall can be viewed on the official website (of course, OneAPI support is also required), and the corresponding fields in the model configuration file need to be adjusted (see the configuration field description for details).
Users of the online version can see whether function calls are supported when selecting a model.