Patch Changes
-
#11778
a6d1e1bThanks @yoarajota! -modelRetryMiddlewarenow retries errors that are subclasses of a class listed inretryOn. Previously the array form matched only the exact constructor, soretryOn: [APIError]never retried aRateLimitError. This matchestoolRetryMiddleware. -
#11330
642469dThanks @HDPark95! - fix(langchain): preserve model errors propagated through middleware