@cpwc/node-red-contrib-ai-intent 3.1.1-alpha → 3.1.3-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,7 @@ module.exports = function (RED) {
|
|
17
17
|
node.token?.api || nodeDB.getValueFromGlobalContext(OPEN_AI_KEY);
|
18
18
|
const endpoint =
|
19
19
|
node.token?.endpoint || nodeDB.getValueFromGlobalContext(AZURE_OPENAI_ENDPOINT);
|
20
|
+
const apiVersion = "2025-01-01-preview";
|
20
21
|
|
21
22
|
send =
|
22
23
|
send ||
|
@@ -39,7 +40,7 @@ module.exports = function (RED) {
|
|
39
40
|
|
40
41
|
|
41
42
|
const { apiProperties, toolProperties } = controller;
|
42
|
-
const openai = new
|
43
|
+
const openai = new AzureOpenAI({ endpoint, apiKey, apiVersion });
|
43
44
|
const finalProps = {
|
44
45
|
...toolProperties,
|
45
46
|
model: apiProperties.model,
|
package/package.json
CHANGED