Skip to content

glm-4.7 在 claude code 使用 如何默认开启 工具流式传输 tool_stream=True #800

@sunkeysun

Description

@sunkeysun

System Info / 系統信息

目前在 claude code 使用 glm-4.7 的时候,发现不支持工具流式输出,这在 使用 claude agent sdk 的时候 用户体验大大受损(比如在写一个大文件的时候,用户是希望看到流式效果的),希望有一个方案能够开启 工具流式输出能力
https://docs.bigmodel.cn/cn/guide/capabilities/stream-tool
就是 tool_stream=True 这个参数,有没有办法在 claude code 默认开启

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

claude -p "生成一个10 字关于AI的诗,写入 test.txt" --output-format stream-json --dangerously-skip-permissions --include-partial-messages --verbose

工具调用会卡很久,没有实现流式输出 其他模型(如 deepseek)都没有问题

Expected behavior / 期待表现

希望有方案能够在 claude code 开启工具流式数据,这对用户体验非常重要

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions