> 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. For task-scoped instructions for coding agents working in a Fern project, run `fern instructions` (or `npx fern-api@latest instructions` if the Fern CLI isn't installed or doesn't recognize `instructions`), or see https://buildwithfern.com/learn/home/fern-instructions.md.

## 3.10.0

**`(feat):`** 引入向前兼容的 Python 枚举

### 新功能

* 添加了一个新标志来生成向前兼容的 Python 枚举，而不是利用原始字符串枚举作为字面量。这通过向您的枚举集中添加一个"\_UNKNOWN"成员来工作，其值为未识别枚举的原始值。

## 3.9.0

**`(feat):`** 通过 `union_naming` 配置标志为区分联合体成员引入 Python 命名风格。

### 新功能

* 引入了一个新的配置，使区分联合体成员命名更符合 Python 风格。通过 V1 联合体命名，成员名称从 `<UnionName>_<DiscriminantValue>` 更改为 `<DiscriminantValue><UnionName>`。具体来说，之前命名为 `Chat_User` 的联合体成员在新配置下现在将命名为 `UserChat`。

## 3.8.0

**`(chore):`** 生成的 SDK 现在使用 ruff 进行代码检查和格式化，而不是 Black。