4.23.2

(chore): Bump websockets dependency to >=12.0.0 to ensure compatibility with newer websocket implementations and improve stability.

4.23.1

(chore): Bump pydantic-core dependency to >=2.18.2 to ensure compatibility with newer pydantic versions and improve performance.

4.23.0

(feat): Add support for custom headers parameter at the top level of the client constructor.

1client = Client(
2 headers={"X-Custom-Header": "custom-value"}
3)

4.22.1-rc0

(feat): Lazily validate model serialization to reduce memory consumption. Pydantic 2.11.0 introduced an issue where the model_serializer decorator set to wrap mode forced it to eagerly do schema validation at import time. Because we had this decorator on the UniversalBaseModel, it would try to validate the schemas of all the Model types at import time. This caused massive memory spikes for more complex SDKs, upto 2.6GB in some cases. This change essentially accomplishes the same logic of wrapping the serialization process and modifying the serialization structure of datetime fields. The difference is that we manually wrap, so we’re able to defer model validation until runtime, drastically reducing our memory consumption.

4.22.0

(feat): Support wrapped aliases in python for pydantic v2.

4.21.5

(fix): Generate README for github output mode.

4.21.3

(fix): Fix an issue where the websocket connect method did not correctly yield the websocket client.

4.21.2

(chore): Handle HEAD HTTP method gracefully by treating it as a POST method when constructing the snippet registry, rather than failing.

4.21.1

(chore): Make sure to generate README and Reference even when generating in local mode (if self hosting is enabled).

4.21.0

(chore): Bump to v58 of IR.

4.20.3

(fix): Fix handling of optional and unknown response types by not throwing errors when the response is empty.

4.20.2

(fix): Support formatting the generated README.md and python code snippets.

4.20.1

(fix): Add support for the custom introduction setting in the generated README.md.

4.20.0

(feat): Generate standalone Pydantic models for each class definition for models that utilize the Fern extends keyword, as opposed to generating Pydantic models that implement inheritance.

4.19.7

(fix): Fix mypy errors related to type-shadowing data variables in generated streaming endpoints.

4.19.6

(fix): Fix mypy errors related to automatic pagination in the python client.

4.19.5

(fix): Fix naming conflicts in streaming endpoints by renaming the stream method to _stream in raw clients, preventing collisions with endpoint parameters that might also be named “stream”, while maintaining proper functionality for streaming responses.

4.19.4

(feat): Fix handling of optional file parameters in multipart form data requests with httpx by properly checking for None values before attempting to include them in the request, preventing errors when optional file parameters are not provided.