1. Use Cases
The Function Calling feature enables the model to call external tools to enhance its capabilities. This capability can leverage external tools through the large model, such as searching for external knowledge, checking itineraries, or using specific domain tools, effectively addressing issues like hallucination and Knowledge Timeliness.2. Usage
2.1 Adding tools Request Parameters via REST API
Add in the request body:2.2 Request via OpenAI Library
This feature is compatible with OpenAI. When using the OpenAI library, addtools=[corresponding tools]
to the corresponding request parameters.
For example:
3. List of Supported Models
The current list of supported models includes:-
Deepseek Series:
- deepseek-ai/DeepSeek-V2.5
- Pro/deepseek-ai/DeepSeek-R1
- deepseek-ai/DeepSeek-R1
- Pro/deepseek-ai/DeepSeek-V3
- deepseek-ai/DeepSeek-V3
- deepseek-ai/DeepSeek-R1-Distill-Qwen-32B
- deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
- deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
- Pro/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
-
internlm Series:
- internlm/internlm2_5-7b-chat
- Pro/internlm/internlm2_5-7b-chat
-
Qwen Series:
- Qwen/Qwen3-30B-A3B
- Qwen/Qwen3-32B
- Qwen/Qwen3-14B
- Qwen/Qwen3-8B
- Qwen/Qwen3-235B-A22B
- Qwen/QwQ-32B
- Qwen/Qwen2.5-72B-Instruct
- Qwen/Qwen2.5-32B-Instruct
- Qwen/Qwen2.5-14B-Instruct
- Qwen/Qwen2.5-7B-Instruct
- Pro/Qwen/Qwen2.5-7B-Instruct
-
GLM Series:
- THUDM/glm-4-9b-chat
- Pro/THUDM/glm-4-9b-chat
- THUDM/GLM-Z1-32B-0414
- THUDM/GLM-4-32B-0414
- THUDM/GLM-Z1-Rumination-32B-0414
- THUDM/GLM-4-9B-0414
- THUDM/GLM-4-9B-0414
Note: The list of supported models is constantly being adjusted. Please refer to this document for the latest list of supported models.