You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
94
+
95
+
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
96
+
```python
97
+
import unstructured_client
98
+
from unstructured_client.models import operations, shared
99
+
from unstructured_client.utils import BackoffStrategy, RetryConfig
100
+
101
+
s = unstructured_client.UnstructuredClient(
102
+
api_key_auth="YOUR_API_KEY",
103
+
)
104
+
105
+
106
+
res = s.general.partition(request=operations.PartitionRequest(
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
124
+
```python
125
+
import unstructured_client
126
+
from unstructured_client.models import operations, shared
127
+
from unstructured_client.utils import BackoffStrategy, RetryConfig
0 commit comments