Skip to content

Commit 84874c0

Browse files
authored
Update 4.0.0-5.0.0-migration-guide.md (#434)
1 parent 2eac37d commit 84874c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

4.0.0-5.0.0-migration-guide.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ for event in stream:
2626
print(event.text, end='')
2727
```
2828

29+
### Migrating deprecated `num_workers` Client constructor parameter
30+
31+
The Client constructor accepts an `httpx_client` which can be configured to limit the maximum number of connections.
32+
33+
```python
34+
limits = httpx.Limits(max_connections=10)
35+
cohere.Client(httpx_client=httpx.Client(limits=limits))
36+
```
37+
2938
### Removed functionality (subject to change)
3039

3140
The following lists name the functions that are not in the new SDK and what their ongoing support status is.

0 commit comments

Comments
 (0)