From 84874c07e88dc3f138d4f7eba28cb385c071a039 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 25 Mar 2024 11:12:22 -0300 Subject: [PATCH] Update 4.0.0-5.0.0-migration-guide.md (#434) --- 4.0.0-5.0.0-migration-guide.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/4.0.0-5.0.0-migration-guide.md b/4.0.0-5.0.0-migration-guide.md index d3de8ff8a..01dd86199 100644 --- a/4.0.0-5.0.0-migration-guide.md +++ b/4.0.0-5.0.0-migration-guide.md @@ -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.