Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 CLI4.60.0, generator5.2.1) and updates version headers (User-Agent,X-Fern-SDK-Version).Adds async token support to
AsyncClientWrapper/BaseCoherevia a newasync_tokencallable for async auth flows.Improves HTTP retry handling in
HttpClient/AsyncHttpClientby 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.v1imports), fixes nested parsing with forward refs, tightens union variant selection using Literal discriminants, and adds enum coercion inconstruct_type. Also tightenspydantic-coreupper bound and bumps dev deps (pytest,pytest-asyncio).Written by Cursor Bugbot for commit 39622b3. This will update automatically on new commits. Configure here.