github langchain-ai/langchainjs @langchain/openai@1.5.8

latest releases: @langchain/neo4j@0.1.15, @langchain/together-ai@0.2.8, @langchain/google@0.2.2...
3 hours ago

Patch Changes

  • #11342 3b0e4c4 Thanks @thushanth-bengre-langchain! - feat(openai): mark OpenAI provider errors as retryable or not

    Builds on stampRetryable in @langchain/core so the retry middleware can tell a transient failure from a deterministic one. Timeouts and rate limits are marked retryable; aborts, context overflow, invalid tool results, bad credentials, and unknown models non-retryable. Anything else stays unmarked and retries as before.

    Also forwards a per-call maxRetries to the retry loop, so a surrounding retry loop such as modelRetryMiddleware can take over instead of the two multiplying against each other.

    Errors keep their original class, so instanceof against the openai SDK error types is unaffected.

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.