Skip to content

Commit

Permalink
fix(sdk-js): Avoid retrying 402s (#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Nov 27, 2024
1 parent 5144b8f commit 7ac365e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sdk-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/langgraph-sdk",
"version": "0.0.28",
"version": "0.0.29",
"description": "Client library for interacting with the LangGraph API",
"type": "module",
"packageManager": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions libs/sdk-js/src/utils/async_caller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PQueueMod from "p-queue";
const STATUS_NO_RETRY = [
400, // Bad Request
401, // Unauthorized
402, // Payment required
403, // Forbidden
404, // Not Found
405, // Method Not Allowed
Expand Down

0 comments on commit 7ac365e

Please sign in to comment.