jeancarl / node-red-contrib-tjbot

Node-RED nodes that can be used with the TJBot running on a Raspberry Pi.
6 stars 20 forks source link

Add support for Watson service endpoints #11

Open jeancarl opened 5 years ago

jeancarl commented 5 years ago

Only the default Dallas location for the Watson service endpoint is currently supported by the nodes. Add support for other Watson service endpoints listed below via a companion select box for each API key input.

Watson Assistant (https://cloud.ibm.com/apidocs/assistant#service-endpoint):

Language Translator (https://cloud.ibm.com/apidocs/language-translator#service-endpoint):

Speech to Text (https://cloud.ibm.com/apidocs/speech-to-text#service-endpoint):

Text to Speech (https://cloud.ibm.com/apidocs/text-to-speech#service-endpoint)

Tone Analyzer (https://cloud.ibm.com/apidocs/tone-analyzer#service-endpoint):

chunyianliew commented 4 years ago

IBM Changed has the end point again for newly created AI services: https://cloud.ibm.com/apidocs/assistant/assistant-v2

In the example given in the above page you can see that the URL of the endpoint is now including a instance reference: https://api.us-south.assistant.watson.cloud.ibm.com/instances/6bbda3b3-d572-45e1-8c54-22d6ed9e52c2

Next to that, two additional locations have become available for the Visual Recognition Service next to Dallas: Frankfurt and Seoul. See https://cloud.ibm.com/apidocs/visual-recognition/visual-recognition-v4 for more information.

Wouldn't it be easier to just allow the configuration of the End Point URL's as a simple open text fields instead of pre-configured picklist listing the available locations?