Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/writer/ai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def acquire_client(
client = Writer(
api_key=instance.token,
default_headers=custom_headers,
http_client=custom_httpx_client
http_client=custom_httpx_client,
max_retries=10,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to also adjust the MAX_RETRY_DELAY constant, which is capped at 8 seconds. Circuit breaker cooldowns last at minimum 30 seconds, so this alone won't help.

)
_ai_client.set(client)
return client
Expand Down