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
Copy file name to clipboardExpand all lines: README.md
+42-42
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ The file downloaded will be called `ibm-credentials.env`. This is the name the S
95
95
As long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following:
@@ -221,17 +221,17 @@ Tested on Python 3.9, 3.10, and 3.11.
221
221
222
222
If you have issues with the APIs or have a question about the Watson services, see [Stack Overflow](https://stackoverflow.com/questions/tagged/ibm-watson+python).
223
223
224
-
## Configuring the http client (Supported from v1.1.0)
224
+
## Configuring the http client
225
225
226
226
To set client configs like timeout use the `set_http_config()` function and pass it a dictionary of configs. See this [documentation](https://requests.readthedocs.io/en/latest/api/) for more information about the options. All options shown except `method`, `url`, `headers`, `params`, `data`, and `auth` are configurable via `set_http_config()`. For example for a Assistant service instance
227
227
228
228
```python
229
-
from ibm_watson importAssistantV1
229
+
from ibm_watson importAssistantV2
230
230
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
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`
340
340
341
341
```python
342
-
from ibm_watson importAssistantV1
342
+
from ibm_watson importAssistantV2
343
343
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
service =AssistantV1(authenticator={my_authenticator})
388
+
service =AssistantV2(authenticator={my_authenticator})
389
389
service.my_service_call()
390
390
except ApiException as e:
391
391
print(e.global_transaction_id)
@@ -396,9 +396,9 @@ except ApiException as e:
396
396
However, the transaction ID isn't available when the API doesn't return a response for some reason. In that case, you can set your own transaction ID in the request. For example, replace `<my-unique-transaction-id>` in the following example with a unique transaction ID.
397
397
398
398
```python
399
-
from ibm_watson importAssistantV1
399
+
from ibm_watson importAssistantV2
400
400
401
-
service =AssistantV1(authenticator={my_authenticator})
401
+
service =AssistantV2(authenticator={my_authenticator})
0 commit comments