Skip to content

Commit dae31ec

Browse files
committed
Fix to how metadata is sent in NLC Create Classifier method
1 parent 2ea563c commit dae31ec

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Node-RED Watson Nodes for IBM Cloud
1313
- Discovery node
1414
- Discovery Document Loader node
1515
- Discovery Query Builder node
16-
- List Expansion list, and List Training data modes added to Discovery node
16+
- Assistant V1 Workspace Manager node
17+
- List Expansion list, and List Training data modes added to Discovery node
18+
- Fix to Create Classifier mode in NLC node
1719

1820
### New in version 0.8.1
1921
- Node-RED & IBM-Watson & Use of promises on API invocation & IAM URL construct migration & Removal of default endpoint of

services/natural_language_classifier/v1.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ module.exports = function(RED) {
192192
language : config.language
193193
};
194194

195-
params.trainingMetadata = JSON.stringify(meta);
195+
params.trainingMetadata = Buffer.from(JSON.stringify(meta));
196+
196197
//params.trainingMetadata = meta;
197198

198199
if ('string' === typeof msg.payload) {

0 commit comments

Comments
 (0)