Conversation
Codecov Report
@@ Coverage Diff @@
## master #554 +/- ##
=======================================
Coverage 0% 0%
=======================================
Files 26 24 -2
Lines 16707 16251 -456
=======================================
+ Misses 16707 16251 -456
Continue to review full report at Codecov.
|
BREAKING CHANGE: Response is now DetailedResponse
germanattanasio
left a comment
There was a problem hiding this comment.
It looks good 👍 I can't approve it because I didn't manually test it yet 😿
mediumTaj
left a comment
There was a problem hiding this comment.
Looks good - a few questions and there are some opportunities to remove x-python-alternate-name
README.md
Outdated
|
|
||
| ## Parsing HTTP response info | ||
| If you would like access to some HTTP response information along with the response model, you can set the `set_detailed_response()` to `True` | ||
| 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 `v2.0`, it is set to `True` |
There was a problem hiding this comment.
Since python v2.0 - this part reads like Python v2 not Python SDK v2
appveyor.yml
Outdated
| deploy: off | ||
|
|
||
| matrix: | ||
| fast_finish: true No newline at end of file |
There was a problem hiding this comment.
Can you add a newline at the end here?
examples/conversation_v1.py
Outdated
| ## url is optional, and defaults to the URL below. Use the correct URL for your region. | ||
| # url='https://gateway.watsonplatform.net/conversation/api', | ||
| version='2018-02-16') | ||
| url='https://gateway.watsonplatform.net/assistant/api', |
There was a problem hiding this comment.
Should this stay conversation?
examples/conversation_v1.py
Outdated
| # ## url is optional, and defaults to the URL below. Use the correct URL for your region. | ||
| # url='https://gateway.watsonplatform.net/conversation/api', | ||
| # iam_api_key='your_api_key') | ||
| # # url='https://gateway.watsonplatform.net/assistant/api', |
There was a problem hiding this comment.
Should this stay conversation?
examples/discovery_v1.py
Outdated
| # url='https://gateway.watsonplatform.net/discovery/api', | ||
| username='YOUR SERVICE USERNAME', | ||
| password='YOUR SERVICE PASSWORD') | ||
| url='https://gateway-syd.watsonplatform.net/discovery/api', |
There was a problem hiding this comment.
do we want this syd url in the example?
examples/discovery_v1.py
Outdated
| # print(new_collection) | ||
| #print(discovery.get_collections(environment_id=writable_environment_id)) | ||
| #print(discovery.get_collections(environment_id=writable_environment_id).get_result()) | ||
| #res = discovery.delete_collection(environment_id='10b733d0-1232-4924-a670-e6ffaed2e641', |
There was a problem hiding this comment.
Do we want this environment_id in the example?
examples/language_translator_v3.py
Outdated
|
|
||
| ## Delete model | ||
| # print(json.dumps(language_translator.delete_model(model_id='9f8d9c6f-2123-462f-9793-f17fdcb77cd6'), indent=2)) | ||
| # print(json.dumps(language_translator.delete_model(model_id='9f8d9c6f-2123-462f-9793-f17fdcb77cd6').get_result(), indent=2)) |
There was a problem hiding this comment.
Do we want this model_id in the example?
examples/language_translator_v3.py
Outdated
|
|
||
| ## Get model details | ||
| # model = language_translator.get_model(model_id='fdadfc3b-0b96-4276-a6e5-f5c4a29711fc') | ||
| # model = language_translator.get_model(model_id='fdadfc3b-0b96-4276-a6e5-f5c4a29711fc').get_result() |
There was a problem hiding this comment.
Do we want this model_id in the example?
| return not self == other | ||
|
|
||
|
|
||
| class InlineResponse200(object): |
There was a problem hiding this comment.
This needs to be called DeleteModelResults. x-python-alternate-name needs to be removed from the api def.
There was a problem hiding this comment.
Also it is not listed here but QueryResultResultMetadata needs to be renamed QueryResultMetadata and the api definition needs to have x-python-alternate-name removed.
watson_developer_cloud/version.py
Outdated
| @@ -1 +1 @@ | |||
| __version__ = '1.7.1' | |||
| __version__ = '1.7.0' | |||
| api_key = None | ||
| if api_key is not None and api_key.startswith(ICP_PREFIX): | ||
| self.set_username_and_password(APIKEY, api_key) | ||
| return |
There was a problem hiding this comment.
@germanattanasio Should we add this to the other SDKs too? I didn't think about this but if users try to authenticate using an icp apikey the SDK does basicauth instead?
|
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
The following would be the
MIGRATIONVersion 2.0.0
GENERAL CHANGES FOR ALL SERVICES:
get_result()to obtain the method response.The constructor for each service now looks like:
PERSONALITY INSIGHTS:
profilemethod parameter reordering:VISUAL RECOGNITION:
classifywould no longer support theparameterskeyword, the new interface is:detect_faceswould no longer support theparameterskeyword, the new interface is:SPEECH TO TEXT:
recognizeparameter reordering andversionparameter renamed tobase_model_versioncreate_job, parameter reordering andversionparameter renamed tobase_model_versionadd_corpusno longer supportscorpus_file_content_typeandcorpus_filename. The corpus_file should be ATEXTfile.add_wordrecognize_using_websocketaudiois of typeAudioSourcerecognize_callback’son_transcription ()andon_hypothesis ()results swapped with each other