Skip to content

🌿 Fern Regeneration -- April 3, 2026#749

Closed
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-04-03T15-30Z
Closed

🌿 Fern Regeneration -- April 3, 2026#749
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-04-03T15-30Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api bot commented Apr 3, 2026

This PR regenerates code to match the latest API Definition.


Note

Medium Risk
Updates core request retry behavior and Pydantic model construction logic, which can affect network resilience and response parsing across the SDK. Also bumps generator/tooling and dev dependencies, which may cause CI/test behavior changes.

Overview
Regenerates the SDK to 5.22.0 (Fern CLI 4.60.0, generator 5.2.1) and updates version headers (User-Agent, X-Fern-SDK-Version).

Adds async token support to AsyncClientWrapper/BaseCohere via a new async_token callable for async auth flows.

Improves HTTP retry handling in HttpClient/AsyncHttpClient by making the default max retries configurable and retrying on connection/protocol errors using exponential backoff.

Refactors Pydantic utilities/model construction for better Python 3.14+ compatibility (avoids pydantic.v1 imports), fixes nested parsing with forward refs, tightens union variant selection using Literal discriminants, and adds enum coercion in construct_type. Also tightens pydantic-core upper bound and bumps dev deps (pytest, pytest-asyncio).

Written by Cursor Bugbot for commit 39622b3. This will update automatically on new commits. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant