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

**`(chore):`** 移除 Pydantic 字段别名并利用内部表示。

### 已修复的问题

* Pydantic 字段别名被移除并替换为内部表示。这允许更健壮地处理字段别名，并防止 Pydantic V2 和 mypy 的问题。
  之前，为了在 Pydantic 中实现 V1 和 V2 兼容性，您需要在基础模型中有条件地应用配置类，但这会导致在使用字段别名填充模型时出现 mypy 错误。为了解决这个问题，我们使用了已弃用的 `class Config`，无论 Pydantic 版本如何都要满足 mypy，这导致控制台中出现警告。
  现在，我们已经移除了字段别名并用内部表示替换它们，这使我们能够完全避免 pydantic 配置。