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
See the [changelog](https://github.com/watson-developer-cloud/python-sdk/wiki/Changelog) for the details.
207
214
215
+
## Changes for v3.0
216
+
The SDK is generated using OpenAPI Specification(OAS3). Changes are basic reordering of parameters in function calls.
217
+
218
+
The package is renamed to ibm_watson. See the [changelog](https://github.com/watson-developer-cloud/python-sdk/wiki/Changelog) for the details.
219
+
208
220
## Migration
209
221
This version includes many breaking changes as a result of standardizing behavior across the new generated services. Full details on migration from previous versions can be found [here](https://github.com/watson-developer-cloud/python-sdk/wiki/Migration).
210
222
211
223
## Configuring the http client (Supported from v1.1.0)
212
224
To set client configs like timeout use the `with_http_config()` function and pass it a dictionary of configs.
213
225
214
226
```python
215
-
fromwatson_developer_cloudimport AssistantV1
227
+
fromibm_watsonimport AssistantV1
216
228
217
229
assistant = AssistantV1(
218
230
username='xxx',
@@ -243,7 +255,7 @@ headers = {
243
255
For example, to send a header called `Custom-Header` to a call in Watson Assistant, pass
If you would like access to some HTTP response information along with the response model, you can set the `set_detailed_response()` to `True`. Since Python SDK `v2.0`, it is set to `True`
259
271
```python
260
-
fromwatson_developer_cloudimport AssistantV1
272
+
fromibm_watsonimport AssistantV1
261
273
262
274
assistant = AssistantV1(
263
275
username='xxx',
@@ -284,7 +296,7 @@ You can use the `get_result()`, `get_headers()` and get_status_code() to return
284
296
The Text to Speech service supports synthesizing text to spoken audio using web sockets with the `synthesize_using_websocket`. The Speech to Text service supports recognizing speech to text using web sockets with the `recognize_using_websocket`. These methods need a custom callback class to listen to events. Below is an example of `synthesize_using_websocket`. Note: The service accepts one request per connection.
0 commit comments