diff --git a/node.html b/node.html
index 3efc5d0..d76ef75 100644
--- a/node.html
+++ b/node.html
@@ -4872,11 +4872,13 @@
msg.payload Properties
apiBase: { value: "https://api.openai.com/v1", required: true },
secureApiKeyHeaderOrQueryName: { value: "Authorization" },
organizationId: { value: "" },
+ organizationIdType: { type: "str"},
secureApiKeyIsQuery: { value: false },
name: { value: "" },
},
credentials: {
- secureApiKeyValue: { type: "password" },
+ secureApiKeyValue: { value: "" },
+ secureApiKeyValueType: { type: "str" },
temp: { type: "text" },
},
label: function () {
@@ -4888,6 +4890,23 @@ msg.payload Properties
oneditprepare: function () {
$("#node-config-input-secureApiKeyIsQuery-label").hide();
$("#node-config-input-secureApiKeyIsQuery").hide();
+
+ $('#node-config-input-organizationId').typedInput({
+ default: 'str',
+ types: ['str', 'env', 'cred'],
+ });
+
+ $('#node-config-input-secureApiKeyValue').typedInput({
+ default: 'str',
+ types: ['str', 'env', 'cred'],
+ });
+
+ $('#node-config-input-organizationId').typedInput('value', this.organizationId);
+ $('#node-config-input-organizationId').typedInput('type', this.organizationIdType);
+
+ $('#node-config-input-secureApiKeyValue').typedInput('value', this.secureApiKeyValue);
+ $('#node-config-input-secureApiKeyValue').typedInput('type', this.secureApiKeyValueType);
+
var selected = $(
"#node-config-input-secureApiKeyIsQuery option:selected",
);
@@ -4895,6 +4914,13 @@ msg.payload Properties
$("#node-config-input-secureApiKeyIsQuery").val(false);
};
},
+ oneditsave: function () {
+ this.organizationId = $('#node-config-input-organizationId').typedInput('value');
+ this.organizationIdType = $('#node-config-input-organizationId').typedInput('type');
+
+ this.secureApiKeyValue = $('#node-config-input-secureApiKeyValue').typedInput('value');
+ this.secureApiKeyValueType = $('#node-config-input-secureApiKeyValue').typedInput('type');
+ },
});
@@ -4931,7 +4957,7 @@ msg.payload Properties
@@ -4978,4 +5004,4 @@ msg.payload Properties
\ No newline at end of file
+