Cloudflare Markdown for Agents v2026-10-09:限容升至6MiB
Cloudflare Fundamentals - More efficient Markdown for Agents conversion
Markdown for Agents 移除了关键的 token 统计响应头并调整了限容策略,直接破坏现有依赖自动计数的调用链路。请检查集成代码,尽快适配新的流式处理逻辑并自行实现 Token 统计。
Markdown for Agents now converts HTML with an in-process streaming engine at the edge. It processes content as it arrives instead of buffering the HTML response and sending it to a separate conversion service. This reduces conversion overhead and memory use.
Markdown for Agents 现在在边缘节点使用进程内流式引擎将 HTML 转换为 Markdown。它会在内容到达时进行处理,而不是缓冲 HTML 响应并将其发送到单独的转换服务。这降低了转换开销和内存使用量。
This release also changes the conversion limit and response headers:
此版本还更改了转换限制和响应头:
- Conversion supports up to 6 MiB (6,291,456 bytes) of decompressed HTML, increased from 2 MiB (2,097,152 bytes). The limit applies after decompression, not to the compressed response size.
- Converted responses no longer generate the x-markdown-tokens or x-original-tokens headers. Clients that use these values need to calculate token counts themselves.
- Content-Length is removed from converted responses rather than recalculated, because the Markdown body is streamed.
- 转换支持最多 6 MiB(6,291,456 字节)的解压缩 HTML,较之前的 2 MiB(2,097,152 字节)有所增加。该限制适用于解压缩后的大小,而非压缩响应的大小。
- 转换后的响应不再生成 x-markdown-tokens 或 x-original-tokens 头信息。使用这些值的客户端需要自行计算 token 数量。
- Content-Length 已从转换后的响应中移除,而不是重新计算,因为 Markdown 正文是流式传输的。
For more information, refer to the Markdown for Agents documentation.
更多信息,请参阅 Markdown for Agents 文档。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力