You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Function Calling with Chinese AI Models: DeepSeek, GLM & Kimi"
published: true
tags: function-calling, tool-use, deepseek, glm, kimi
canonical_url: https://aiwave.live/blog/function-calling-chinese-ai-models
description: "Function calling support across DeepSeek V4, GLM-5, and Kimi K2.6. Format comparison and working Python examples for each model."
Function Calling with Chinese AI Models
Function calling (also called tool use) lets LLMs execute structured actions: query databases, call APIs, trigger workflows. All three major Chinese model providers support it through OpenAI-compatible APIs.
Available through AIWave with model names deepseek-chat, glm-5, kimi-k2.6.
Format
All three accept the same tools parameter format as OpenAI:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
title: "Function Calling with Chinese AI Models: DeepSeek, GLM & Kimi"
published: true
tags: function-calling, tool-use, deepseek, glm, kimi
canonical_url: https://aiwave.live/blog/function-calling-chinese-ai-models
description: "Function calling support across DeepSeek V4, GLM-5, and Kimi K2.6. Format comparison and working Python examples for each model."
Function Calling with Chinese AI Models
Function calling (also called tool use) lets LLMs execute structured actions: query databases, call APIs, trigger workflows. All three major Chinese model providers support it through OpenAI-compatible APIs.
Available through AIWave with model names
deepseek-chat,glm-5,kimi-k2.6.Format
All three accept the same
toolsparameter format as OpenAI:{ "model": "deepseek-chat", "messages": [...], "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get current weather for a city", "parameters": { "type": "object", "properties": { "city": {"type": "string"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]} }, "required": ["city"] } } } ] }The model returns a
tool_callsarray with the function name and arguments. Your code executes the function, then sends the result back.Implementation
Model Differences
All three work with the same code above. Switch models by changing the
modelparameter.Real-World Use Cases
Function calling is available on all AIWave models. The $1 free credit covers hundreds of tool-calling turns to prototype your agent.
Originally published on the AIWave Blog - one API for DeepSeek, GLM, Kimi, Qwen & 48 Chinese AI models.
Resources
All reactions