Changed
- BREAKING: Migrated the inference client from the deprecated
gradientSDK topydo(pydo.inference.Client). The Gradient SDK retires on 2026-08-15. (#32) - BREAKING: Exception types now come from azure-core/pydo (
HttpResponseError,ClientAuthenticationError,ServiceResponseTimeoutError, etc.) instead of Gradient SDK exceptions. Update anyexcept gradient.*handlers. - BREAKING: Response objects are now pydo
DotDicts rather than Gradient/Stainless typed models. Attribute access still works;response_metadatashape is unchanged. - BREAKING:
timeoutis now a required positiveint(default120). Floats are truncated;None,0, and negative values raiseValidationError. Sub-second floats (e.g.0.5) no longer work. The value is applied as azure-coreconnection_timeout/read_timeout(and the retry budget), so requests actually abort after N seconds. - User-agent is set via the public
user_agentclient kwarg. - Streaming responses now close the SSE stream in a
finallyblock.
Removed
- Dependency on
gradient(replaced bypydo ^0.39.0).
Install: pip install langchain-gradient==1.0.0
Thanks @MrDiggles2 for the migration!