> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 4.7.0

**`(feat):`** 添加 `retry-status-codes` 配置，包含 `"legacy"` 和 `"recommended"` 模式。Legacy（默认）保留当前行为（408、429、>= 500）。Recommended 仅重试瞬态代码（408、429、502、503、504），避免 500 引起的幂等性问题。4.0.0 迁移会自动将升级用户固定为 legacy。

## 4.6.4

**`(fix):`** 修复带有文件参数的 multipart/form-data 端点的动态代码片段生成。此前，当示例中未提供文件值时，文件参数会从代码片段中省略，导致后续参数错位并产生编译错误（例如 `incompatible types: <Op>Request cannot be converted to Optional<java.io.File>`）。现在为缺失的文件参数发出 `null`，以保持位置参数对齐。