Skip to content

Commit 138602c

Browse files
authored
feat: add max_retries parameter to Writer client initialization - AB-931 (#1265)
1 parent a550ac2 commit 138602c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/writer/ai/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ def acquire_client(
320320
client = Writer(
321321
api_key=instance.token,
322322
default_headers=custom_headers,
323-
http_client=custom_httpx_client
323+
http_client=custom_httpx_client,
324+
max_retries=10,
324325
)
325326
_ai_client.set(client)
326327
return client

0 commit comments

Comments
 (0)