Skip to content

[Docs] Document GLM-4.7 tool parser - #4825

Open
zcxGGmu wants to merge 1 commit into
InternLM:mainfrom
zcxGGmu:docs-glm-tools
Open

[Docs] Document GLM-4.7 tool parser#4825
zcxGGmu wants to merge 1 commit into
InternLM:mainfrom
zcxGGmu:docs-glm-tools

Conversation

@zcxGGmu

@zcxGGmu zcxGGmu commented Aug 5, 2026

Copy link
Copy Markdown

Motivation

Issues #4400 and #4329 ask how to configure GLM-4.7 tool-calling options in LMDeploy. Current main includes the glm47 tool parser, but the tool-calling docs only list internlm, qwen, and llama3 parser names.

Refs #4400
Refs #4329

Modification

  • Add GLM-4.7 to the English and Chinese tool-calling docs.
  • List glm47 as a supported --tool-call-parser name.
  • Add a minimal GLM-4.7 launch example using --tool-call-parser glm47.

BC-breaking (Optional)

No. Documentation only.

Use cases (Optional)

lmdeploy serve api_server /path/to/GLM-4.7-Flash --tool-call-parser glm47

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
    • PYTHONPATH= python -m pre_commit run --files docs/en/llm/api_server_tools.md docs/zh_cn/llm/api_server_tools.md
  2. The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
    • Documentation-only change; verified by grep for glm47 in both docs.
  3. If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
    • N/A
  4. The documentation has been modified accordingly, like docstring or example tutorials.
    • Updated docs/en/llm/api_server_tools.md and docs/zh_cn/llm/api_server_tools.md.

Signed-off-by: zq <zhouquan1511@163.com>
1. internlm
2. qwen
3. llama3
4. glm47

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may add qwen3coder


```shell
lmdeploy serve api_server /path/to/GLM-4.7-Flash --tool-call-parser glm47
```

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants