@n8n/n8n-nodes-langchain 0.12.2 → 0.14.0
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.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/AzureOpenAiApi.credentials.d.ts +8 -0
- package/dist/credentials/AzureOpenAiApi.credentials.js +44 -0
- package/dist/credentials/AzureOpenAiApi.credentials.js.map +1 -0
- package/dist/known/credentials.json +8 -0
- package/dist/known/nodes.json +12 -0
- package/dist/methods/defined.json +5 -1
- package/dist/methods/referenced.json +5 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js +3 -3
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js +2 -2
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.d.ts +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.d.ts +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.d.ts +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js.map +1 -1
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +1 -0
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +2 -2
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
- package/dist/nodes/code/Code.node.js +2 -4
- package/dist/nodes/code/Code.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +106 -0
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -0
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/azure.svg +1 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +141 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/azure.svg +1 -0
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
- package/dist/nodes/tools/ToolCode/ToolCode.node.js +14 -7
- package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +26 -9
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/OpenAi.node.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js +20 -0
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/create.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/create.operation.js +211 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/create.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/deleteAssistant.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/deleteAssistant.operation.js +30 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/deleteAssistant.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/index.d.ts +8 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/index.js +88 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/index.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/list.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/list.operation.js +68 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/list.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/message.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/message.operation.js +149 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/message.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/update.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/update.operation.js +148 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/update.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/generate.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/generate.operation.js +168 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/generate.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/index.js +82 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/index.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/transcribe.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/transcribe.operation.js +87 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/transcribe.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/translate.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/translate.operation.js +77 -0
- package/dist/nodes/vendors/OpenAi/actions/audio/translate.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/descriptions.d.ts +3 -0
- package/dist/nodes/vendors/OpenAi/actions/descriptions.js +53 -0
- package/dist/nodes/vendors/OpenAi/actions/descriptions.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/file/deleteFile.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/file/deleteFile.operation.js +59 -0
- package/dist/nodes/vendors/OpenAi/actions/file/deleteFile.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/file/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/actions/file/index.js +70 -0
- package/dist/nodes/vendors/OpenAi/actions/file/index.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/file/list.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/file/list.operation.js +58 -0
- package/dist/nodes/vendors/OpenAi/actions/file/list.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/file/upload.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/file/upload.operation.js +91 -0
- package/dist/nodes/vendors/OpenAi/actions/file/upload.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/image/analyze.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/image/analyze.operation.js +194 -0
- package/dist/nodes/vendors/OpenAi/actions/image/analyze.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/image/generate.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/image/generate.operation.js +227 -0
- package/dist/nodes/vendors/OpenAi/actions/image/generate.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/image/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/actions/image/index.js +61 -0
- package/dist/nodes/vendors/OpenAi/actions/image/index.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/node.type.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/actions/node.type.js +3 -0
- package/dist/nodes/vendors/OpenAi/actions/node.type.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/actions/router.js +81 -0
- package/dist/nodes/vendors/OpenAi/actions/router.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/text/classify.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/text/classify.operation.js +79 -0
- package/dist/nodes/vendors/OpenAi/actions/text/classify.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/text/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/actions/text/index.js +61 -0
- package/dist/nodes/vendors/OpenAi/actions/text/index.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/text/message.operation.d.ts +25 -0
- package/dist/nodes/vendors/OpenAi/actions/text/message.operation.js +239 -0
- package/dist/nodes/vendors/OpenAi/actions/text/message.operation.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/actions/versionDescription.js +137 -0
- package/dist/nodes/vendors/OpenAi/actions/versionDescription.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.d.ts +55 -0
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.js +3 -0
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/helpers/utils.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/helpers/utils.js +36 -0
- package/dist/nodes/vendors/OpenAi/helpers/utils.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/methods/index.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/methods/index.js +29 -0
- package/dist/nodes/vendors/OpenAi/methods/index.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/methods/listSearch.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js +101 -0
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.js +17 -0
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/openAi.svg +1 -0
- package/dist/nodes/vendors/OpenAi/transport/index.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/transport/index.js +20 -0
- package/dist/nodes/vendors/OpenAi/transport/index.js.map +1 -0
- package/dist/types/credentials.json +1 -0
- package/dist/types/nodes.json +30 -27
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/helpers.js +7 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/logWrapper.js +30 -16
- package/dist/utils/logWrapper.js.map +1 -1
- package/dist/utils/sharedFields.js +3 -1
- package/dist/utils/sharedFields.js.map +1 -1
- package/package.json +14 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/OpenAi/actions/assistant/message.operation.ts"],"names":[],"mappings":";;;AAAA,6CAAiD;AAEjD,8EAAkF;AAElF,mCAAgD;AAEhD,+CAA4F;AAG5F,+CAAkE;AAClE,kDAA+C;AAE/C,MAAM,UAAU,GAAsB;IACrC,2BAAY;IACZ;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBAEC,IAAI,EAAE,uCAAuC;gBAC7C,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,2CAA2C;aACxD;YACD;gBAEC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4EAA4E;aACzF;SACD;QACD,OAAO,EAAE,MAAM;KACf;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,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ACvC,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,KAAK;KACjC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AACtD,CAAC;AA3ED,0BA2EC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
doNotInherit?: boolean | undefined;
|
|
22
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
23
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const transport_1 = require("../../transport");
|
|
6
|
+
const descriptions_1 = require("../descriptions");
|
|
7
|
+
const properties = [
|
|
8
|
+
descriptions_1.assistantRLC,
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Options',
|
|
11
|
+
name: 'options',
|
|
12
|
+
placeholder: 'Add Option',
|
|
13
|
+
type: 'collection',
|
|
14
|
+
default: {},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Code Interpreter',
|
|
18
|
+
name: 'codeInterpreter',
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
default: false,
|
|
21
|
+
description: 'Whether to enable the code interpreter that allows the assistants to write and run Python code in a sandboxed execution environment, find more <a href="https://platform.openai.com/docs/assistants/tools/code-interpreter" target="_blank">here</a>',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Description',
|
|
25
|
+
name: 'description',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
description: 'The description of the assistant. The maximum length is 512 characters.',
|
|
29
|
+
placeholder: 'e.g. My personal assistant',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: 'Files',
|
|
33
|
+
name: 'file_ids',
|
|
34
|
+
type: 'multiOptions',
|
|
35
|
+
description: 'The files to be used by the assistant, there can be a maximum of 20 files attached to the assistant',
|
|
36
|
+
typeOptions: {
|
|
37
|
+
loadOptionsMethod: 'getFiles',
|
|
38
|
+
},
|
|
39
|
+
default: [],
|
|
40
|
+
hint: "Add more files by using the 'Upload a File' operation, any existing files not selected here will be removed.",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Instructions',
|
|
44
|
+
name: 'instructions',
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'The system instructions that the assistant uses. The maximum length is 32768 characters.',
|
|
47
|
+
default: '',
|
|
48
|
+
typeOptions: {
|
|
49
|
+
rows: 2,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Knowledge Retrieval',
|
|
54
|
+
name: 'knowledgeRetrieval',
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
default: false,
|
|
57
|
+
description: 'Whether to augments the assistant with knowledge from outside its model, such as proprietary product information or documents, find more <a href="https://platform.openai.com/docs/assistants/tools/knowledge-retrieval" target="_blank">here</a>',
|
|
58
|
+
},
|
|
59
|
+
{ ...descriptions_1.modelRLC, required: false },
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Name',
|
|
62
|
+
name: 'name',
|
|
63
|
+
type: 'string',
|
|
64
|
+
default: '',
|
|
65
|
+
description: 'The name of the assistant. The maximum length is 256 characters.',
|
|
66
|
+
placeholder: 'e.g. My Assistant',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Remove All Custom Tools (Functions)',
|
|
70
|
+
name: 'removeCustomTools',
|
|
71
|
+
type: 'boolean',
|
|
72
|
+
default: false,
|
|
73
|
+
description: 'Whether to remove all custom tools (functions) from the assistant',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
const displayOptions = {
|
|
79
|
+
show: {
|
|
80
|
+
operation: ['update'],
|
|
81
|
+
resource: ['assistant'],
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
85
|
+
async function execute(i) {
|
|
86
|
+
const assistantId = this.getNodeParameter('assistantId', i, '', { extractValue: true });
|
|
87
|
+
const options = this.getNodeParameter('options', i, {});
|
|
88
|
+
const { modelId, name, instructions, codeInterpreter, knowledgeRetrieval, file_ids, removeCustomTools, } = options;
|
|
89
|
+
const assistantDescription = options.description;
|
|
90
|
+
const body = {};
|
|
91
|
+
if (file_ids) {
|
|
92
|
+
if (file_ids.length > 20) {
|
|
93
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The maximum number of files that can be attached to the assistant is 20', { itemIndex: i });
|
|
94
|
+
}
|
|
95
|
+
body.file_ids = file_ids;
|
|
96
|
+
}
|
|
97
|
+
if (modelId) {
|
|
98
|
+
body.model = this.getNodeParameter('options.modelId', i, '', { extractValue: true });
|
|
99
|
+
}
|
|
100
|
+
if (name) {
|
|
101
|
+
body.name = name;
|
|
102
|
+
}
|
|
103
|
+
if (assistantDescription) {
|
|
104
|
+
body.description = assistantDescription;
|
|
105
|
+
}
|
|
106
|
+
if (instructions) {
|
|
107
|
+
body.instructions = instructions;
|
|
108
|
+
}
|
|
109
|
+
let tools = (await transport_1.apiRequest.call(this, 'GET', `/assistants/${assistantId}`, {
|
|
110
|
+
headers: {
|
|
111
|
+
'OpenAI-Beta': 'assistants=v1',
|
|
112
|
+
},
|
|
113
|
+
})).tools || [];
|
|
114
|
+
if (codeInterpreter && !tools.find((tool) => tool.type === 'code_interpreter')) {
|
|
115
|
+
tools.push({
|
|
116
|
+
type: 'code_interpreter',
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
if (codeInterpreter === false && tools.find((tool) => tool.type === 'code_interpreter')) {
|
|
120
|
+
tools = tools.filter((tool) => tool.type !== 'code_interpreter');
|
|
121
|
+
}
|
|
122
|
+
if (knowledgeRetrieval && !tools.find((tool) => tool.type === 'retrieval')) {
|
|
123
|
+
tools.push({
|
|
124
|
+
type: 'retrieval',
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
if (knowledgeRetrieval === false && tools.find((tool) => tool.type === 'retrieval')) {
|
|
128
|
+
tools = tools.filter((tool) => tool.type !== 'retrieval');
|
|
129
|
+
}
|
|
130
|
+
if (removeCustomTools) {
|
|
131
|
+
tools = tools.filter((tool) => tool.type !== 'function');
|
|
132
|
+
}
|
|
133
|
+
body.tools = tools;
|
|
134
|
+
const response = await transport_1.apiRequest.call(this, 'POST', `/assistants/${assistantId}`, {
|
|
135
|
+
body,
|
|
136
|
+
headers: {
|
|
137
|
+
'OpenAI-Beta': 'assistants=v1',
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
return [
|
|
141
|
+
{
|
|
142
|
+
json: response,
|
|
143
|
+
pairedItem: { item: i },
|
|
144
|
+
},
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
exports.execute = execute;
|
|
148
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/OpenAi/actions/assistant/update.operation.ts"],"names":[],"mappings":";;;AAMA,+CAAwE;AACxE,+CAA6C;AAC7C,kDAAyD;AAEzD,MAAM,UAAU,GAAsB;IACrC,2BAAY;IACZ;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,sPAAsP;aACvP;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yEAAyE;gBACtF,WAAW,EAAE,4BAA4B;aACzC;YAED;gBAEC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,cAAc;gBAEpB,WAAW,EACV,qGAAqG;gBACtG,WAAW,EAAE;oBACZ,iBAAiB,EAAE,UAAU;iBAC7B;gBACD,OAAO,EAAE,EAAE;gBACX,IAAI,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C,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;SACvB;KACD,CAAC;AACH,CAAC;AA9FD,0BA8FC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
doNotInherit?: boolean | undefined;
|
|
22
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
23
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execute = exports.description = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const transport_1 = require("../../transport");
|
|
6
|
+
const properties = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Model',
|
|
9
|
+
name: 'model',
|
|
10
|
+
type: 'options',
|
|
11
|
+
default: 'tts-1',
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'TTS-1',
|
|
15
|
+
value: 'tts-1',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'TTS-1-HD',
|
|
19
|
+
value: 'tts-1-hd',
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Text Input',
|
|
25
|
+
name: 'input',
|
|
26
|
+
type: 'string',
|
|
27
|
+
placeholder: 'e.g. The quick brown fox jumped over the lazy dog',
|
|
28
|
+
description: 'The text to generate audio for. The maximum length is 4096 characters.',
|
|
29
|
+
default: '',
|
|
30
|
+
typeOptions: {
|
|
31
|
+
rows: 2,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Voice',
|
|
36
|
+
name: 'voice',
|
|
37
|
+
type: 'options',
|
|
38
|
+
default: 'alloy',
|
|
39
|
+
description: 'The voice to use when generating the audio',
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
name: 'Alloy',
|
|
43
|
+
value: 'alloy',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Echo',
|
|
47
|
+
value: 'echo',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Fable',
|
|
51
|
+
value: 'fable',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Nova',
|
|
55
|
+
value: 'nova',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Onyx',
|
|
59
|
+
value: 'onyx',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Shimmer',
|
|
63
|
+
value: 'shimmer',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Options',
|
|
69
|
+
name: 'options',
|
|
70
|
+
placeholder: 'Add Option',
|
|
71
|
+
type: 'collection',
|
|
72
|
+
default: {},
|
|
73
|
+
options: [
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Response Format',
|
|
76
|
+
name: 'response_format',
|
|
77
|
+
type: 'options',
|
|
78
|
+
default: 'mp3',
|
|
79
|
+
options: [
|
|
80
|
+
{
|
|
81
|
+
name: 'MP3',
|
|
82
|
+
value: 'mp3',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'OPUS',
|
|
86
|
+
value: 'opus',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'AAC',
|
|
90
|
+
value: 'aac',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'FLAC',
|
|
94
|
+
value: 'flac',
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Audio Speed',
|
|
100
|
+
name: 'speed',
|
|
101
|
+
type: 'number',
|
|
102
|
+
default: 1,
|
|
103
|
+
typeOptions: {
|
|
104
|
+
minValue: 0.25,
|
|
105
|
+
maxValue: 4,
|
|
106
|
+
numberPrecision: 1,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Put Output in Field',
|
|
111
|
+
name: 'binaryPropertyOutput',
|
|
112
|
+
type: 'string',
|
|
113
|
+
default: 'data',
|
|
114
|
+
hint: 'The name of the output field to put the binary file data in',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
];
|
|
119
|
+
const displayOptions = {
|
|
120
|
+
show: {
|
|
121
|
+
operation: ['generate'],
|
|
122
|
+
resource: ['audio'],
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
126
|
+
async function execute(i) {
|
|
127
|
+
const model = this.getNodeParameter('model', i);
|
|
128
|
+
const input = this.getNodeParameter('input', i);
|
|
129
|
+
const voice = this.getNodeParameter('voice', i);
|
|
130
|
+
let response_format = 'mp3';
|
|
131
|
+
let speed = 1;
|
|
132
|
+
const options = this.getNodeParameter('options', i, {});
|
|
133
|
+
if (options.response_format) {
|
|
134
|
+
response_format = options.response_format;
|
|
135
|
+
}
|
|
136
|
+
if (options.speed) {
|
|
137
|
+
speed = options.speed;
|
|
138
|
+
}
|
|
139
|
+
const body = {
|
|
140
|
+
model,
|
|
141
|
+
input,
|
|
142
|
+
voice,
|
|
143
|
+
response_format,
|
|
144
|
+
speed,
|
|
145
|
+
};
|
|
146
|
+
const option = {
|
|
147
|
+
useStream: true,
|
|
148
|
+
returnFullResponse: true,
|
|
149
|
+
encoding: 'arraybuffer',
|
|
150
|
+
json: false,
|
|
151
|
+
};
|
|
152
|
+
const response = await transport_1.apiRequest.call(this, 'POST', '/audio/speech', { body, option });
|
|
153
|
+
const binaryData = await this.helpers.prepareBinaryData(response, `audio.${response_format}`, `audio/${response_format}`);
|
|
154
|
+
const binaryPropertyOutput = options.binaryPropertyOutput || 'data';
|
|
155
|
+
const newItem = {
|
|
156
|
+
json: {
|
|
157
|
+
...binaryData,
|
|
158
|
+
data: undefined,
|
|
159
|
+
},
|
|
160
|
+
pairedItem: { item: i },
|
|
161
|
+
binary: {
|
|
162
|
+
[binaryPropertyOutput]: binaryData,
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
return [newItem];
|
|
166
|
+
}
|
|
167
|
+
exports.execute = execute;
|
|
168
|
+
//# sourceMappingURL=generate.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/Open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|
+
import * as generate from './generate.operation';
|
|
3
|
+
import * as transcribe from './transcribe.operation';
|
|
4
|
+
import * as translate from './translate.operation';
|
|
5
|
+
export { generate, transcribe, translate };
|
|
6
|
+
export declare const description: INodeProperties[];
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.description = exports.translate = exports.transcribe = exports.generate = void 0;
|
|
27
|
+
const generate = __importStar(require("./generate.operation"));
|
|
28
|
+
exports.generate = generate;
|
|
29
|
+
const transcribe = __importStar(require("./transcribe.operation"));
|
|
30
|
+
exports.transcribe = transcribe;
|
|
31
|
+
const translate = __importStar(require("./translate.operation"));
|
|
32
|
+
exports.translate = translate;
|
|
33
|
+
exports.description = [
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Operation',
|
|
36
|
+
name: 'operation',
|
|
37
|
+
type: 'options',
|
|
38
|
+
noDataExpression: true,
|
|
39
|
+
options: [
|
|
40
|
+
{
|
|
41
|
+
name: 'Generate Audio',
|
|
42
|
+
value: 'generate',
|
|
43
|
+
action: 'Generate audio',
|
|
44
|
+
description: 'Creates audio from a text prompt',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Transcribe a Recording',
|
|
48
|
+
value: 'transcribe',
|
|
49
|
+
action: 'Transcribe a recording',
|
|
50
|
+
description: 'Transcribes audio into the text',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Translate a Recording',
|
|
54
|
+
value: 'translate',
|
|
55
|
+
action: 'Translate a recording',
|
|
56
|
+
description: 'Translate audio into the text in the english language',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
default: 'generate',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['audio'],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'OpenAI API limits the size of the audio file to 25 MB',
|
|
68
|
+
name: 'fileSizeLimitNotice',
|
|
69
|
+
type: 'notice',
|
|
70
|
+
default: ' ',
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
resource: ['audio'],
|
|
74
|
+
operation: ['translate', 'transcribe'],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
...generate.description,
|
|
79
|
+
...transcribe.description,
|
|
80
|
+
...translate.description,
|
|
81
|
+
];
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/OpenAi/actions/audio/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+DAAiD;AAIxC,4BAAQ;AAHjB,mEAAqD;AAGlC,gCAAU;AAF7B,iEAAmD;AAEpB,8BAAS;AAE3B,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,kCAAkC;aAC/C;YACD;gBACC,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,wBAAwB;gBAChC,WAAW,EAAE,iCAAiC;aAC9C;YACD;gBACC,IAAI,EAAE,uBAAuB;gBAC7B,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,uDAAuD;aACpE;SACD;QACD,OAAO,EAAE,UAAU;QACnB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;KACD;IACD;QACC,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,GAAG;QACZ,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;aACtC;SACD;KACD;IACD,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,UAAU,CAAC,WAAW;IACzB,GAAG,SAAS,CAAC,WAAW;CACxB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
doNotInherit?: boolean | undefined;
|
|
22
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
23
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.execute = exports.description = void 0;
|
|
7
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
+
const form_data_1 = __importDefault(require("form-data"));
|
|
9
|
+
const transport_1 = require("../../transport");
|
|
10
|
+
const properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Input Data Field Name',
|
|
13
|
+
name: 'binaryPropertyName',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: 'data',
|
|
16
|
+
placeholder: 'e.g. data',
|
|
17
|
+
hint: 'The name of the input field containing the binary file data to be processed',
|
|
18
|
+
description: 'Name of the binary property which contains the audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Options',
|
|
22
|
+
name: 'options',
|
|
23
|
+
placeholder: 'Add Option',
|
|
24
|
+
type: 'collection',
|
|
25
|
+
default: {},
|
|
26
|
+
options: [
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Language of the Audio File',
|
|
29
|
+
name: 'language',
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'The language of the input audio. Supplying the input language in <a href="https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes" target="_blank">ISO-639-1</a> format will improve accuracy and latency.',
|
|
32
|
+
default: '',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Output Randomness (Temperature)',
|
|
36
|
+
name: 'temperature',
|
|
37
|
+
type: 'number',
|
|
38
|
+
default: 0,
|
|
39
|
+
typeOptions: {
|
|
40
|
+
minValue: 0,
|
|
41
|
+
maxValue: 1,
|
|
42
|
+
numberPrecision: 1,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
const displayOptions = {
|
|
49
|
+
show: {
|
|
50
|
+
operation: ['transcribe'],
|
|
51
|
+
resource: ['audio'],
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
55
|
+
async function execute(i) {
|
|
56
|
+
const model = 'whisper-1';
|
|
57
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i);
|
|
58
|
+
const options = this.getNodeParameter('options', i, {});
|
|
59
|
+
const formData = new form_data_1.default();
|
|
60
|
+
formData.append('model', model);
|
|
61
|
+
if (options.language) {
|
|
62
|
+
formData.append('language', options.language);
|
|
63
|
+
}
|
|
64
|
+
if (options.temperature) {
|
|
65
|
+
formData.append('temperature', options.temperature.toString());
|
|
66
|
+
}
|
|
67
|
+
const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
|
|
68
|
+
const dataBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
|
|
69
|
+
formData.append('file', dataBuffer, {
|
|
70
|
+
filename: binaryData.fileName,
|
|
71
|
+
contentType: binaryData.mimeType,
|
|
72
|
+
});
|
|
73
|
+
const response = await transport_1.apiRequest.call(this, 'POST', '/audio/transcriptions', {
|
|
74
|
+
option: { formData },
|
|
75
|
+
headers: {
|
|
76
|
+
'Content-Type': 'multipart/form-data',
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
return [
|
|
80
|
+
{
|
|
81
|
+
json: response,
|
|
82
|
+
pairedItem: { item: i },
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
exports.execute = execute;
|
|
87
|
+
//# sourceMappingURL=transcribe.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcribe.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/OpenAi/actions/audio/transcribe.operation.ts"],"names":[],"mappings":";;;;;;AACA,+CAAoD;AAEpD,0DAAiC;AACjC,+CAA6C;AAE7C,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,6EAA6E;QACnF,WAAW,EACV,uIAAuI;KACxI;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI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Q,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC;IAEjF,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE;QACnC,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,WAAW,EAAE,UAAU,CAAC,QAAQ;KAChC,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,uBAAuB,EAAE;QAC7E,MAAM,EAAE,EAAE,QAAQ,EAAE;QACpB,OAAO,EAAE;YACR,cAAc,EAAE,qBAAqB;SACrC;KACD,CAAC,CAAC;IAEH,OAAO;QACN;YACC,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;SACvB;KACD,CAAC;AACH,CAAC;AAtCD,0BAsCC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
hint?: string | undefined;
|
|
11
|
+
options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
|
+
isNodeSetting?: boolean | undefined;
|
|
14
|
+
noDataExpression?: boolean | undefined;
|
|
15
|
+
required?: boolean | undefined;
|
|
16
|
+
routing?: import("n8n-workflow").INodePropertyRouting | undefined;
|
|
17
|
+
credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
|
|
18
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
|
|
19
|
+
modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
|
|
20
|
+
requiresDataPath?: "single" | "multiple" | undefined;
|
|
21
|
+
doNotInherit?: boolean | undefined;
|
|
22
|
+
validateType?: import("n8n-workflow").FieldType | undefined;
|
|
23
|
+
ignoreValidationDuringExecution?: boolean | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|