Skip to content

Commit f41ff4f

Browse files
authored
Merge pull request #417 from chughts/iamvr
VR Fix for IAM
2 parents 5cf12f9 + a551b55 commit f41ff4f

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Node-RED Watson Nodes for IBM Cloud
77

88
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>
99

10+
### New in version 0.7.1
11+
- Fix to how IAM Key for bound Visual Recognition is retrieved
12+
1013
### New in version 0.7.0
1114
- In this release STT in Stream mode with IAM Keys does not work.
1215
- Assistant, Discovery, Language Identify, Language Translator,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"async": "^1.5.2",

services/speech_to_text/v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ module.exports = function (RED) {
444444
})
445445
.catch((err) => {
446446
reject(err);
447-
})
447+
});
448448
} else {
449449
speech_to_text.recognize(params, function (err, res) {
450450
if (err) {

services/visual_recognition/v3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function(RED) {
5151
service = serviceutils.getServiceCreds(SERVICE_IDENTIFIER);
5252

5353
if (service) {
54-
sAPIKey = service.api_key;
54+
sAPIKey = service.api_key || service.apikey;
5555
sEndpoint = service.url;
5656
}
5757

0 commit comments

Comments
 (0)