From d96b4eff57bd46c06967f55c75ec6b459df8c47a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 19:58:11 +0000 Subject: [PATCH] docs: Suggest a client without retries for calls with application retries Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01U3gjiawstYsVCz5A4S3vkN --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index fd573ac1..ce1d7dcd 100644 --- a/README.md +++ b/README.md @@ -553,6 +553,18 @@ Retries use exponential backoff with jitter: approximately 200–240 ms before the first retry and 400–480 ms before the second. A longer `Retry-After` header is honored. The request timeout is reset for each attempt. +Retries are configured per client. If your application has its own retry +behavior for some calls, create a second client with retries disabled and send +those calls through it, while other calls keep the default retries: + +```ts +const seam = SeamHttp.fromApiKey('some-api-key') + +const seamWithoutRetries = SeamHttp.fromApiKey('some-api-key', { + axiosRetryOptions: { retries: 0 }, +}) +``` + [axiosOptions]: https://axios-http.com/docs/config_defaults [axiosRetryOptions]: https://github.com/softonic/axios-retry