> 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.

## 5.0.4

**`(fix):`** 修复多部分文件上传请求中可选复杂类型参数被发送为 `"null"` 而不是被省略的问题。当可选的 body 属性（例如 `Optional[List[str]]`、`Optional[Any]`）默认为 `OMIT` 时，`json.dumps(jsonable_encoder(OMIT))` 会计算为字符串 `"null"`，在 `remove_omit_from_dict` 能够剥离它之前就破坏了 OMIT 哨兵。可选的非原始 body 属性现在会发出三元保护（`json.dumps(...) if prop is not OMIT else OMIT`），这样 OMIT 哨兵得以保留并正确地从请求数据中删除。