Skip to content

Commit

Permalink
Update 4.0.0-5.0.0-migration-guide.md (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkozakov authored Mar 25, 2024
1 parent 2eac37d commit 84874c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 4.0.0-5.0.0-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ for event in stream:
print(event.text, end='')
```

### Migrating deprecated `num_workers` Client constructor parameter

The Client constructor accepts an `httpx_client` which can be configured to limit the maximum number of connections.

```python
limits = httpx.Limits(max_connections=10)
cohere.Client(httpx_client=httpx.Client(limits=limits))
```

### Removed functionality (subject to change)

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

0 comments on commit 84874c0

Please sign in to comment.