@n8n/n8n-nodes-langchain 2.5.1 → 2.6.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/credentials/AnthropicApi.credentials.d.ts +9 -0
- package/dist/credentials/AnthropicApi.credentials.js +80 -100
- package/dist/credentials/AnthropicApi.credentials.js.map +1 -1
- package/dist/credentials/AzureAiSearchApi.credentials.d.ts +9 -0
- package/dist/credentials/AzureAiSearchApi.credentials.js +48 -71
- package/dist/credentials/AzureAiSearchApi.credentials.js.map +1 -1
- package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js +105 -129
- package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/AzureOpenAiApi.credentials.d.ts +8 -0
- package/dist/credentials/AzureOpenAiApi.credentials.js +47 -70
- package/dist/credentials/AzureOpenAiApi.credentials.js.map +1 -1
- package/dist/credentials/ChromaCloudApi.credentials.d.ts +9 -0
- package/dist/credentials/ChromaCloudApi.credentials.js +55 -78
- package/dist/credentials/ChromaCloudApi.credentials.js.map +1 -1
- package/dist/credentials/ChromaSelfHostedApi.credentials.d.ts +9 -0
- package/dist/credentials/ChromaSelfHostedApi.credentials.js +78 -101
- package/dist/credentials/ChromaSelfHostedApi.credentials.js.map +1 -1
- package/dist/credentials/CohereApi.credentials.d.ts +9 -0
- package/dist/credentials/CohereApi.credentials.js +38 -61
- package/dist/credentials/CohereApi.credentials.js.map +1 -1
- package/dist/credentials/DeepSeekApi.credentials.d.ts +9 -0
- package/dist/credentials/DeepSeekApi.credentials.js +38 -61
- package/dist/credentials/DeepSeekApi.credentials.js.map +1 -1
- package/dist/credentials/GooglePalmApi.credentials.d.ts +9 -0
- package/dist/credentials/GooglePalmApi.credentials.js +38 -61
- package/dist/credentials/GooglePalmApi.credentials.js.map +1 -1
- package/dist/credentials/GroqApi.credentials.d.ts +9 -0
- package/dist/credentials/GroqApi.credentials.js +32 -55
- package/dist/credentials/GroqApi.credentials.js.map +1 -1
- package/dist/credentials/HuggingFaceApi.credentials.d.ts +9 -0
- package/dist/credentials/HuggingFaceApi.credentials.js +32 -55
- package/dist/credentials/HuggingFaceApi.credentials.js.map +1 -1
- package/dist/credentials/LemonadeApi.credentials.d.ts +13 -0
- package/dist/credentials/LemonadeApi.credentials.js +42 -65
- package/dist/credentials/LemonadeApi.credentials.js.map +1 -1
- package/dist/credentials/McpOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/McpOAuth2Api.credentials.js +17 -40
- package/dist/credentials/McpOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MilvusApi.credentials.d.ts +9 -0
- package/dist/credentials/MilvusApi.credentials.js +45 -68
- package/dist/credentials/MilvusApi.credentials.js.map +1 -1
- package/dist/credentials/MistralCloudApi.credentials.d.ts +9 -0
- package/dist/credentials/MistralCloudApi.credentials.js +33 -56
- package/dist/credentials/MistralCloudApi.credentials.js.map +1 -1
- package/dist/credentials/MotorheadApi.credentials.d.ts +9 -0
- package/dist/credentials/MotorheadApi.credentials.js +45 -68
- package/dist/credentials/MotorheadApi.credentials.js.map +1 -1
- package/dist/credentials/OllamaApi.credentials.d.ts +9 -0
- package/dist/credentials/OllamaApi.credentials.js +41 -64
- package/dist/credentials/OllamaApi.credentials.js.map +1 -1
- package/dist/credentials/OpenRouterApi.credentials.d.ts +9 -0
- package/dist/credentials/OpenRouterApi.credentials.js +38 -61
- package/dist/credentials/OpenRouterApi.credentials.js.map +1 -1
- package/dist/credentials/PineconeApi.credentials.d.ts +9 -0
- package/dist/credentials/PineconeApi.credentials.js +34 -57
- package/dist/credentials/PineconeApi.credentials.js.map +1 -1
- package/dist/credentials/QdrantApi.credentials.d.ts +9 -0
- package/dist/credentials/QdrantApi.credentials.js +39 -62
- package/dist/credentials/QdrantApi.credentials.js.map +1 -1
- package/dist/credentials/SearXngApi.credentials.d.ts +7 -0
- package/dist/credentials/SearXngApi.credentials.js +17 -40
- package/dist/credentials/SearXngApi.credentials.js.map +1 -1
- package/dist/credentials/SerpApi.credentials.d.ts +9 -0
- package/dist/credentials/SerpApi.credentials.js +32 -55
- package/dist/credentials/SerpApi.credentials.js.map +1 -1
- package/dist/credentials/VercelAiGatewayApi.credentials.d.ts +9 -0
- package/dist/credentials/VercelAiGatewayApi.credentials.js +54 -77
- package/dist/credentials/VercelAiGatewayApi.credentials.js.map +1 -1
- package/dist/credentials/WeaviateApi.credentials.d.ts +8 -0
- package/dist/credentials/WeaviateApi.credentials.js +137 -160
- package/dist/credentials/WeaviateApi.credentials.js.map +1 -1
- package/dist/credentials/WolframAlphaApi.credentials.d.ts +9 -0
- package/dist/credentials/WolframAlphaApi.credentials.js +36 -59
- package/dist/credentials/WolframAlphaApi.credentials.js.map +1 -1
- package/dist/credentials/XAiApi.credentials.d.ts +9 -0
- package/dist/credentials/XAiApi.credentials.js +38 -61
- package/dist/credentials/XAiApi.credentials.js.map +1 -1
- package/dist/credentials/XataApi.credentials.d.ts +9 -0
- package/dist/credentials/XataApi.credentials.js +46 -69
- package/dist/credentials/XataApi.credentials.js.map +1 -1
- package/dist/credentials/ZepApi.credentials.d.ts +9 -0
- package/dist/credentials/ZepApi.credentials.js +57 -80
- package/dist/credentials/ZepApi.credentials.js.map +1 -1
- package/dist/nodes/Guardrails/Guardrails.node.d.ts +4 -0
- package/dist/nodes/Guardrails/Guardrails.node.js +36 -59
- package/dist/nodes/Guardrails/Guardrails.node.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/jailbreak.d.ts +3 -0
- package/dist/nodes/Guardrails/actions/checks/jailbreak.js +6 -31
- package/dist/nodes/Guardrails/actions/checks/jailbreak.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/keywords.d.ts +6 -0
- package/dist/nodes/Guardrails/actions/checks/keywords.js +55 -75
- package/dist/nodes/Guardrails/actions/checks/keywords.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/nsfw.d.ts +3 -0
- package/dist/nodes/Guardrails/actions/checks/nsfw.js +6 -31
- package/dist/nodes/Guardrails/actions/checks/nsfw.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/pii.d.ts +49 -0
- package/dist/nodes/Guardrails/actions/checks/pii.js +178 -215
- package/dist/nodes/Guardrails/actions/checks/pii.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/secretKeys.d.ts +7 -0
- package/dist/nodes/Guardrails/actions/checks/secretKeys.js +154 -178
- package/dist/nodes/Guardrails/actions/checks/secretKeys.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/topicalAlignment.d.ts +3 -0
- package/dist/nodes/Guardrails/actions/checks/topicalAlignment.js +6 -31
- package/dist/nodes/Guardrails/actions/checks/topicalAlignment.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/urls.d.ts +9 -0
- package/dist/nodes/Guardrails/actions/checks/urls.js +204 -223
- package/dist/nodes/Guardrails/actions/checks/urls.js.map +1 -1
- package/dist/nodes/Guardrails/actions/execute.d.ts +2 -0
- package/dist/nodes/Guardrails/actions/execute.js +43 -63
- package/dist/nodes/Guardrails/actions/execute.js.map +1 -1
- package/dist/nodes/Guardrails/actions/process.d.ts +12 -0
- package/dist/nodes/Guardrails/actions/process.js +185 -209
- package/dist/nodes/Guardrails/actions/process.js.map +1 -1
- package/dist/nodes/Guardrails/actions/types.d.ts +96 -0
- package/dist/nodes/Guardrails/actions/types.js +8 -31
- package/dist/nodes/Guardrails/actions/types.js.map +1 -1
- package/dist/nodes/Guardrails/description.d.ts +2 -0
- package/dist/nodes/Guardrails/description.js +345 -383
- package/dist/nodes/Guardrails/description.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/base.d.ts +9 -0
- package/dist/nodes/Guardrails/helpers/base.js +25 -61
- package/dist/nodes/Guardrails/helpers/base.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/common.d.ts +2 -0
- package/dist/nodes/Guardrails/helpers/common.js +20 -39
- package/dist/nodes/Guardrails/helpers/common.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.d.ts +22 -0
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.js +49 -74
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/mappers.d.ts +11 -0
- package/dist/nodes/Guardrails/helpers/mappers.js +73 -90
- package/dist/nodes/Guardrails/helpers/mappers.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/model.d.ts +7 -0
- package/dist/nodes/Guardrails/helpers/model.js +75 -104
- package/dist/nodes/Guardrails/helpers/model.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/preflight.d.ts +2 -0
- package/dist/nodes/Guardrails/helpers/preflight.js +30 -54
- package/dist/nodes/Guardrails/helpers/preflight.js.map +1 -1
- package/dist/nodes/Guardrails/v1/GuardrailsV1.node.d.ts +6 -0
- package/dist/nodes/Guardrails/v1/GuardrailsV1.node.js +24 -47
- package/dist/nodes/Guardrails/v1/GuardrailsV1.node.js.map +1 -1
- package/dist/nodes/Guardrails/v2/GuardrailsV2.node.d.ts +6 -0
- package/dist/nodes/Guardrails/v2/GuardrailsV2.node.js +24 -47
- package/dist/nodes/Guardrails/v2/GuardrailsV2.node.js.map +1 -1
- package/dist/nodes/ModelSelector/ModelSelector.node.d.ts +13 -0
- package/dist/nodes/ModelSelector/ModelSelector.node.js +145 -170
- package/dist/nodes/ModelSelector/ModelSelector.node.js.map +1 -1
- package/dist/nodes/ModelSelector/helpers.d.ts +3 -0
- package/dist/nodes/ModelSelector/helpers.js +55 -80
- package/dist/nodes/ModelSelector/helpers.js.map +1 -1
- package/dist/nodes/ToolExecutor/ToolExecutor.node.d.ts +6 -0
- package/dist/nodes/ToolExecutor/ToolExecutor.node.js +134 -96
- package/dist/nodes/ToolExecutor/ToolExecutor.node.js.map +1 -1
- package/dist/nodes/ToolExecutor/utils/convertToSchema.d.ts +2 -0
- package/dist/nodes/ToolExecutor/utils/convertToSchema.js +36 -55
- package/dist/nodes/ToolExecutor/utils/convertToSchema.js.map +1 -1
- package/dist/nodes/ToolExecutor/utils/executeTool.d.ts +3 -0
- package/dist/nodes/ToolExecutor/utils/executeTool.js +11 -35
- package/dist/nodes/ToolExecutor/utils/executeTool.js.map +1 -1
- package/dist/nodes/agents/Agent/Agent.node.d.ts +4 -0
- package/dist/nodes/agents/Agent/Agent.node.js +52 -76
- package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
- package/dist/nodes/agents/Agent/AgentTool.node.d.ts +4 -0
- package/dist/nodes/agents/Agent/AgentTool.node.js +31 -56
- package/dist/nodes/agents/Agent/AgentTool.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V1/AgentV1.node.d.ts +6 -0
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js +396 -414
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.d.ts +6 -0
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js +72 -96
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentV2.node.d.ts +6 -0
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js +108 -131
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/utils.d.ts +2 -0
- package/dist/nodes/agents/Agent/V2/utils.js +65 -87
- package/dist/nodes/agents/Agent/V2/utils.js.map +1 -1
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.d.ts +7 -0
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js +67 -91
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V3/AgentV3.node.d.ts +7 -0
- package/dist/nodes/agents/Agent/V3/AgentV3.node.js +110 -133
- package/dist/nodes/agents/Agent/V3/AgentV3.node.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js +87 -111
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js +75 -99
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js +4 -30
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js +77 -101
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js +4 -28
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.d.ts +1 -0
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js +3 -27
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js +63 -87
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js +67 -90
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.d.ts +1 -0
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js +3 -27
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.js +107 -131
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js +82 -101
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.d.ts +4 -0
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js +6 -36
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.js +191 -215
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js +104 -130
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js +16 -40
- 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 +3 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js +17 -41
- 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 +3 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js +67 -67
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js +4 -30
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js +16 -40
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js +81 -123
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.d.ts +4 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.js +41 -66
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js +214 -278
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.js +26 -50
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.js +27 -58
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.d.ts +13 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.js +30 -68
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.js +9 -36
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.d.ts +10 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.js +30 -54
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.d.ts +8 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.js +65 -86
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.d.ts +5 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.js +15 -53
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.d.ts +9 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.js +16 -48
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.d.ts +16 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.js +38 -62
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.d.ts +10 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js +64 -88
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.d.ts +21 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.js +1 -15
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/common.d.ts +28 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js +212 -228
- package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/options.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/options.js +35 -59
- package/dist/nodes/agents/Agent/agents/ToolsAgent/options.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.d.ts +1 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.js +3 -27
- package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/utils.d.ts +6 -0
- package/dist/nodes/agents/Agent/agents/utils.js +17 -48
- package/dist/nodes/agents/Agent/agents/utils.js.map +1 -1
- package/dist/nodes/agents/Agent/utils.d.ts +2 -0
- package/dist/nodes/agents/Agent/utils.js +65 -87
- package/dist/nodes/agents/Agent/utils.js.map +1 -1
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.d.ts +5 -0
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +359 -380
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
- package/dist/nodes/agents/OpenAiAssistant/utils.d.ts +5 -0
- package/dist/nodes/agents/OpenAiAssistant/utils.js +27 -53
- package/dist/nodes/agents/OpenAiAssistant/utils.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.d.ts +5 -0
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +114 -142
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.d.ts +29 -0
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js +103 -129
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/config.d.ts +3 -0
- package/dist/nodes/chains/ChainLLM/methods/config.js +292 -317
- package/dist/nodes/chains/ChainLLM/methods/config.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.d.ts +12 -0
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.js +60 -94
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/index.d.ts +4 -0
- package/dist/nodes/chains/ChainLLM/methods/index.js +9 -35
- package/dist/nodes/chains/ChainLLM/methods/index.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/processItem.d.ts +2 -0
- package/dist/nodes/chains/ChainLLM/methods/processItem.js +54 -89
- package/dist/nodes/chains/ChainLLM/methods/processItem.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.d.ts +7 -0
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.js +86 -126
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.d.ts +2 -0
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js +22 -46
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/types.d.ts +29 -0
- package/dist/nodes/chains/ChainLLM/methods/types.js +1 -15
- package/dist/nodes/chains/ChainLLM/methods/types.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.d.ts +5 -0
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +231 -253
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/constants.d.ts +5 -0
- package/dist/nodes/chains/ChainRetrievalQA/constants.js +13 -43
- package/dist/nodes/chains/ChainRetrievalQA/constants.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/processItem.d.ts +2 -0
- package/dist/nodes/chains/ChainRetrievalQA/processItem.js +57 -85
- package/dist/nodes/chains/ChainRetrievalQA/processItem.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.d.ts +4 -0
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js +38 -61
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.d.ts +6 -0
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js +208 -233
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.d.ts +6 -0
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js +323 -352
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/processItem.d.ts +3 -0
- package/dist/nodes/chains/ChainSummarization/V2/processItem.js +50 -89
- package/dist/nodes/chains/ChainSummarization/V2/processItem.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/helpers.d.ts +9 -0
- package/dist/nodes/chains/ChainSummarization/helpers.js +43 -67
- package/dist/nodes/chains/ChainSummarization/helpers.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/prompt.d.ts +2 -0
- package/dist/nodes/chains/ChainSummarization/prompt.js +4 -30
- package/dist/nodes/chains/ChainSummarization/prompt.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.d.ts +5 -0
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js +251 -283
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/constants.d.ts +1 -0
- package/dist/nodes/chains/InformationExtractor/constants.js +3 -27
- package/dist/nodes/chains/InformationExtractor/constants.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/helpers.d.ts +7 -0
- package/dist/nodes/chains/InformationExtractor/helpers.js +28 -48
- package/dist/nodes/chains/InformationExtractor/helpers.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/processItem.d.ts +4 -0
- package/dist/nodes/chains/InformationExtractor/processItem.js +26 -52
- package/dist/nodes/chains/InformationExtractor/processItem.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/types.d.ts +6 -0
- package/dist/nodes/chains/InformationExtractor/types.js +1 -15
- package/dist/nodes/chains/InformationExtractor/types.js.map +1 -1
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.d.ts +5 -0
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js +314 -350
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.d.ts +5 -0
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js +246 -285
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/constants.d.ts +1 -0
- package/dist/nodes/chains/TextClassifier/constants.js +3 -27
- package/dist/nodes/chains/TextClassifier/constants.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/processItem.d.ts +7 -0
- package/dist/nodes/chains/TextClassifier/processItem.js +26 -59
- package/dist/nodes/chains/TextClassifier/processItem.js.map +1 -1
- package/dist/nodes/code/Code.node.d.ts +8 -0
- package/dist/nodes/code/Code.node.js +316 -364
- package/dist/nodes/code/Code.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.d.ts +8 -0
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js +166 -197
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.d.ts +8 -0
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +317 -336
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.d.ts +5 -0
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js +152 -171
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.d.ts +5 -0
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js +77 -105
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js +123 -146
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +132 -159
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js +101 -124
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js +118 -145
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.d.ts +15 -0
- package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js +136 -159
- package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js +98 -125
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.js +58 -81
- package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js +136 -163
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js +56 -77
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js +228 -251
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.d.ts +11 -0
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +294 -322
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.d.ts +8 -0
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js +38 -60
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js.map +1 -1
- package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.d.ts +5 -0
- package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js +83 -104
- package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.d.ts +5 -0
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js +69 -90
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.d.ts +11 -0
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js +730 -759
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/common.d.ts +4 -0
- package/dist/nodes/llms/LMChatOpenAi/common.js +116 -141
- package/dist/nodes/llms/LMChatOpenAi/common.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.d.ts +2 -0
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js +38 -66
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/types.d.ts +59 -0
- package/dist/nodes/llms/LMChatOpenAi/types.js +1 -15
- package/dist/nodes/llms/LMChatOpenAi/types.js.map +1 -1
- package/dist/nodes/llms/LMCohere/LmCohere.node.d.ts +5 -0
- package/dist/nodes/llms/LMCohere/LmCohere.node.js +93 -116
- package/dist/nodes/llms/LMCohere/LmCohere.node.js.map +1 -1
- package/dist/nodes/llms/LMLemonade/LmLemonade.node.d.ts +5 -0
- package/dist/nodes/llms/LMLemonade/LmLemonade.node.js +81 -101
- package/dist/nodes/llms/LMLemonade/LmLemonade.node.js.map +1 -1
- package/dist/nodes/llms/LMLemonade/description.d.ts +4 -0
- package/dist/nodes/llms/LMLemonade/description.js +112 -140
- package/dist/nodes/llms/LMLemonade/description.js.map +1 -1
- package/dist/nodes/llms/LMOllama/LmOllama.node.d.ts +5 -0
- package/dist/nodes/llms/LMOllama/LmOllama.node.js +65 -86
- package/dist/nodes/llms/LMOllama/LmOllama.node.js.map +1 -1
- package/dist/nodes/llms/LMOllama/description.d.ts +4 -0
- package/dist/nodes/llms/LMOllama/description.js +207 -235
- package/dist/nodes/llms/LMOllama/description.js.map +1 -1
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.d.ts +15 -0
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js +226 -248
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.d.ts +5 -0
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js +133 -156
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js +234 -258
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +111 -144
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.d.ts +14 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js +41 -69
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.d.ts +3 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js +21 -47
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.d.ts +3 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js +23 -50
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/properties.d.ts +2 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/properties.js +124 -151
- package/dist/nodes/llms/LmChatAzureOpenAi/properties.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/types.d.ts +56 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/types.js +14 -40
- package/dist/nodes/llms/LmChatAzureOpenAi/types.js.map +1 -1
- package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.d.ts +11 -0
- package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.js +148 -172
- package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.js.map +1 -1
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js +220 -241
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js +133 -162
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.d.ts +15 -0
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js +174 -205
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleVertex/error-handling.d.ts +8 -0
- package/dist/nodes/llms/LmChatGoogleVertex/error-handling.js +14 -36
- package/dist/nodes/llms/LmChatGoogleVertex/error-handling.js.map +1 -1
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js +136 -159
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js.map +1 -1
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js +194 -217
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js.map +1 -1
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js +220 -241
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js.map +1 -1
- package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.js +220 -241
- package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.js.map +1 -1
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js +222 -243
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js.map +1 -1
- package/dist/nodes/llms/N8nLlmTracing.d.ts +46 -0
- package/dist/nodes/llms/N8nLlmTracing.js +144 -189
- package/dist/nodes/llms/N8nLlmTracing.js.map +1 -1
- package/dist/nodes/llms/N8nNonEstimatingTracing.d.ts +31 -0
- package/dist/nodes/llms/N8nNonEstimatingTracing.js +112 -157
- package/dist/nodes/llms/N8nNonEstimatingTracing.js.map +1 -1
- package/dist/nodes/llms/gemini-common/additional-options.d.ts +4 -0
- package/dist/nodes/llms/gemini-common/additional-options.js +95 -122
- package/dist/nodes/llms/gemini-common/additional-options.js.map +1 -1
- package/dist/nodes/llms/gemini-common/safety-options.d.ts +3 -0
- package/dist/nodes/llms/gemini-common/safety-options.js +49 -75
- package/dist/nodes/llms/gemini-common/safety-options.js.map +1 -1
- package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.d.ts +1 -0
- package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js +24 -60
- package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js.map +1 -1
- package/dist/nodes/llms/n8nLlmFailedAttemptHandler.d.ts +3 -0
- package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js +24 -46
- package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js.map +1 -1
- package/dist/nodes/mcp/McpClient/McpClient.node.d.ts +11 -0
- package/dist/nodes/mcp/McpClient/McpClient.node.js +317 -323
- package/dist/nodes/mcp/McpClient/McpClient.node.js.map +1 -1
- package/dist/nodes/mcp/McpClient/listSearch.d.ts +2 -0
- package/dist/nodes/mcp/McpClient/listSearch.js +32 -54
- package/dist/nodes/mcp/McpClient/listSearch.js.map +1 -1
- package/dist/nodes/mcp/McpClient/resourceMapping.d.ts +2 -0
- package/dist/nodes/mcp/McpClient/resourceMapping.js +33 -57
- package/dist/nodes/mcp/McpClient/resourceMapping.js.map +1 -1
- package/dist/nodes/mcp/McpClient/utils.d.ts +5 -0
- package/dist/nodes/mcp/McpClient/utils.js +202 -232
- package/dist/nodes/mcp/McpClient/utils.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.d.ts +12 -0
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js +359 -397
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/loadOptions.d.ts +2 -0
- package/dist/nodes/mcp/McpClientTool/loadOptions.js +34 -57
- package/dist/nodes/mcp/McpClientTool/loadOptions.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/types.d.ts +1 -0
- package/dist/nodes/mcp/McpClientTool/types.js +1 -15
- package/dist/nodes/mcp/McpClientTool/types.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/utils.d.ts +14 -0
- package/dist/nodes/mcp/McpClientTool/utils.js +70 -109
- package/dist/nodes/mcp/McpClientTool/utils.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/FlushingTransport.d.ts +21 -0
- package/dist/nodes/mcp/McpTrigger/FlushingTransport.js +32 -56
- package/dist/nodes/mcp/McpTrigger/FlushingTransport.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/McpServer.d.ts +27 -0
- package/dist/nodes/mcp/McpTrigger/McpServer.js +201 -230
- package/dist/nodes/mcp/McpTrigger/McpServer.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.d.ts +6 -0
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js +172 -189
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js.map +1 -1
- package/dist/nodes/mcp/shared/descriptions.d.ts +6 -0
- package/dist/nodes/mcp/shared/descriptions.js +54 -82
- package/dist/nodes/mcp/shared/descriptions.js.map +1 -1
- package/dist/nodes/mcp/shared/types.d.ts +8 -0
- package/dist/nodes/mcp/shared/types.js +1 -15
- package/dist/nodes/mcp/shared/types.js.map +1 -1
- package/dist/nodes/mcp/shared/utils.d.ts +32 -0
- package/dist/nodes/mcp/shared/utils.js +182 -202
- package/dist/nodes/mcp/shared/utils.js.map +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +137 -158
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js +84 -107
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js.map +1 -1
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.d.ts +7 -0
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js +324 -362
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js.map +1 -1
- package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js +120 -148
- package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +105 -127
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +1 -1
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.d.ts +11 -0
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js +98 -119
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js +151 -171
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js +126 -152
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js.map +1 -1
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js +141 -165
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js.map +1 -1
- package/dist/nodes/memory/descriptions.d.ts +5 -0
- package/dist/nodes/memory/descriptions.js +48 -78
- package/dist/nodes/memory/descriptions.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.d.ts +5 -0
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js +90 -127
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserAutofixing/prompt.d.ts +1 -0
- package/dist/nodes/output_parser/OutputParserAutofixing/prompt.js +3 -27
- package/dist/nodes/output_parser/OutputParserAutofixing/prompt.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.d.ts +5 -0
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +68 -101
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.d.ts +5 -0
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +159 -196
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/prompt.d.ts +1 -0
- package/dist/nodes/output_parser/OutputParserStructured/prompt.js +3 -27
- package/dist/nodes/output_parser/OutputParserStructured/prompt.js.map +1 -1
- package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.d.ts +5 -0
- package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.js +87 -110
- package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +69 -98
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +88 -117
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +68 -93
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +356 -400
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.d.ts +5 -0
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +76 -99
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.d.ts +5 -0
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +103 -130
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.d.ts +5 -0
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +70 -93
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.d.ts +12 -0
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.js +50 -81
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.js.map +1 -1
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.d.ts +6 -0
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +63 -86
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
- package/dist/nodes/tools/ToolCode/ToolCode.node.d.ts +6 -0
- package/dist/nodes/tools/ToolCode/ToolCode.node.js +278 -310
- package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.d.ts +5 -0
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js +329 -384
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/descriptions.d.ts +7 -0
- package/dist/nodes/tools/ToolHttpRequest/descriptions.js +357 -394
- package/dist/nodes/tools/ToolHttpRequest/descriptions.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/interfaces.d.ts +20 -0
- package/dist/nodes/tools/ToolHttpRequest/interfaces.js +1 -15
- package/dist/nodes/tools/ToolHttpRequest/interfaces.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/utils.d.ts +25 -0
- package/dist/nodes/tools/ToolHttpRequest/utils.js +540 -581
- package/dist/nodes/tools/ToolHttpRequest/utils.js.map +1 -1
- package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.d.ts +6 -0
- package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.js +118 -141
- package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.js.map +1 -1
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.d.ts +6 -0
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js +123 -149
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js.map +1 -1
- package/dist/nodes/tools/ToolThink/ToolThink.node.d.ts +6 -0
- package/dist/nodes/tools/ToolThink/ToolThink.node.js +87 -110
- package/dist/nodes/tools/ToolThink/ToolThink.node.js.map +1 -1
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.d.ts +6 -0
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +126 -153
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js +62 -84
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js.map +1 -1
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js +66 -89
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.d.ts +4 -0
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +42 -65
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js +185 -193
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js +287 -324
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.d.ts +11 -0
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js +58 -79
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/methods/index.d.ts +1 -0
- package/dist/nodes/tools/ToolWorkflow/v2/methods/index.js +35 -36
- package/dist/nodes/tools/ToolWorkflow/v2/methods/index.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.js +20 -42
- package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.d.ts +26 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js +235 -288
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js +131 -164
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/Chat.node.d.ts +8 -0
- package/dist/nodes/trigger/ChatTrigger/Chat.node.js +233 -275
- package/dist/nodes/trigger/ChatTrigger/Chat.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.d.ts +7 -0
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +770 -775
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/GenericFunctions.d.ts +2 -0
- package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js +41 -70
- package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/constants.d.ts +1 -0
- package/dist/nodes/trigger/ChatTrigger/constants.js +9 -27
- package/dist/nodes/trigger/ChatTrigger/constants.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/error.d.ts +5 -0
- package/dist/nodes/trigger/ChatTrigger/error.js +17 -39
- package/dist/nodes/trigger/ChatTrigger/error.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/templates.d.ts +19 -0
- package/dist/nodes/trigger/ChatTrigger/templates.js +55 -95
- package/dist/nodes/trigger/ChatTrigger/templates.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/types.d.ts +6 -0
- package/dist/nodes/trigger/ChatTrigger/types.js +8 -32
- package/dist/nodes/trigger/ChatTrigger/types.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/util.d.ts +15 -0
- package/dist/nodes/trigger/ChatTrigger/util.js +101 -135
- package/dist/nodes/trigger/ChatTrigger/util.js.map +1 -1
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.d.ts +5 -0
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js +63 -87
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.d.ts +29 -0
- package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.js +326 -352
- package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.js +309 -326
- package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +136 -164
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js +83 -116
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js +62 -90
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.js +77 -100
- package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.d.ts +47 -0
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js +278 -340
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js +221 -256
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js +109 -131
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js +107 -137
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js +98 -125
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.d.ts +6 -0
- package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.js +27 -48
- package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js +130 -162
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.d.ts +34 -0
- package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.js +267 -292
- package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js +95 -116
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js +99 -129
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js +94 -121
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.js +301 -336
- package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.d.ts +28 -0
- package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.js +118 -117
- package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js +119 -139
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js +117 -147
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js +100 -127
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.d.ts +7 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js +37 -65
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.d.ts +34 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js +161 -222
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.d.ts +16 -0
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js +87 -120
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/config.d.ts +4 -0
- package/dist/nodes/vector_store/shared/MemoryManager/config.js +26 -50
- package/dist/nodes/vector_store/shared/MemoryManager/config.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/types.d.ts +39 -0
- package/dist/nodes/vector_store/shared/MemoryManager/types.js +1 -15
- package/dist/nodes/vector_store/shared/MemoryManager/types.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +4 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +41 -67
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +18 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +229 -281
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.d.ts +31 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js +70 -97
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +6 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +20 -30
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +29 -58
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +39 -75
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.js +57 -92
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +56 -91
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +24 -50
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +34 -64
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.d.ts +37 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +1 -15
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +6 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +12 -40
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +1 -1
- package/dist/nodes/vector_store/shared/descriptions.d.ts +7 -0
- package/dist/nodes/vector_store/shared/descriptions.js +128 -162
- package/dist/nodes/vector_store/shared/descriptions.js.map +1 -1
- package/dist/nodes/vector_store/shared/processDocuments.d.ts +25 -0
- package/dist/nodes/vector_store/shared/processDocuments.js +35 -58
- package/dist/nodes/vector_store/shared/processDocuments.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/Anthropic.node.d.ts +9 -0
- package/dist/nodes/vendors/Anthropic/Anthropic.node.js +15 -38
- package/dist/nodes/vendors/Anthropic/Anthropic.node.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/actions/descriptions.js +25 -49
- package/dist/nodes/vendors/Anthropic/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.js +91 -116
- package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/document/index.d.ts +4 -0
- package/dist/nodes/vendors/Anthropic/actions/document/index.js +58 -60
- package/dist/nodes/vendors/Anthropic/actions/document/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.js +27 -54
- package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/get.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/get.operation.js +29 -56
- package/dist/nodes/vendors/Anthropic/actions/file/get.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/index.d.ts +7 -0
- package/dist/nodes/vendors/Anthropic/actions/file/index.js +85 -90
- package/dist/nodes/vendors/Anthropic/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/list.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/list.operation.js +70 -96
- package/dist/nodes/vendors/Anthropic/actions/file/list.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.js +92 -118
- package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.js +91 -116
- package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/image/index.d.ts +4 -0
- package/dist/nodes/vendors/Anthropic/actions/image/index.js +58 -60
- package/dist/nodes/vendors/Anthropic/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/node.type.d.ts +10 -0
- package/dist/nodes/vendors/Anthropic/actions/node.type.js +1 -15
- package/dist/nodes/vendors/Anthropic/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.js +51 -76
- package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.js +117 -142
- package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/index.d.ts +6 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/index.js +87 -91
- package/dist/nodes/vendors/Anthropic/actions/prompt/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.js +109 -134
- package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/actions/router.js +84 -87
- package/dist/nodes/vendors/Anthropic/actions/router.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/Anthropic/actions/text/index.js +58 -60
- package/dist/nodes/vendors/Anthropic/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js +489 -508
- package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/actions/versionDescription.js +105 -106
- package/dist/nodes/vendors/Anthropic/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js +80 -102
- package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/helpers/interfaces.d.ts +74 -0
- package/dist/nodes/vendors/Anthropic/helpers/interfaces.js +1 -15
- package/dist/nodes/vendors/Anthropic/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/helpers/utils.d.ts +10 -0
- package/dist/nodes/vendors/Anthropic/helpers/utils.js +39 -71
- package/dist/nodes/vendors/Anthropic/helpers/utils.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/Anthropic/methods/index.js +35 -36
- package/dist/nodes/vendors/Anthropic/methods/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/methods/listSearch.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/methods/listSearch.js +14 -38
- package/dist/nodes/vendors/Anthropic/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/transport/index.d.ts +14 -0
- package/dist/nodes/vendors/Anthropic/transport/index.js +36 -57
- package/dist/nodes/vendors/Anthropic/transport/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.d.ts +9 -0
- package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js +15 -38
- package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/audio/index.d.ts +5 -0
- package/dist/nodes/vendors/GoogleGemini/actions/audio/index.js +67 -70
- package/dist/nodes/vendors/GoogleGemini/actions/audio/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.js +158 -173
- package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js +25 -48
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/document/index.d.ts +4 -0
- package/dist/nodes/vendors/GoogleGemini/actions/document/index.js +58 -60
- package/dist/nodes/vendors/GoogleGemini/actions/document/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/file/index.d.ts +4 -0
- package/dist/nodes/vendors/GoogleGemini/actions/file/index.js +58 -60
- package/dist/nodes/vendors/GoogleGemini/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.js +67 -94
- package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.js +30 -57
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.js +38 -65
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.d.ts +7 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.js +85 -90
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.js +40 -68
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.js +87 -121
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js +161 -191
- package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js +118 -158
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/index.d.ts +6 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/index.js +76 -80
- package/dist/nodes/vendors/GoogleGemini/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/node.type.d.ts +12 -0
- package/dist/nodes/vendors/GoogleGemini/actions/node.type.js +1 -15
- package/dist/nodes/vendors/GoogleGemini/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/actions/router.js +92 -95
- package/dist/nodes/vendors/GoogleGemini/actions/router.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/GoogleGemini/actions/text/index.js +58 -60
- package/dist/nodes/vendors/GoogleGemini/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js +497 -522
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js +118 -119
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js +51 -80
- package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js +174 -213
- package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/index.d.ts +6 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/index.js +76 -80
- package/dist/nodes/vendors/GoogleGemini/actions/video/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js +81 -99
- package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.d.ts +105 -0
- package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.js +4 -27
- package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/helpers/utils.d.ts +17 -0
- package/dist/nodes/vendors/GoogleGemini/helpers/utils.js +179 -247
- package/dist/nodes/vendors/GoogleGemini/helpers/utils.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/GoogleGemini/methods/index.js +35 -36
- package/dist/nodes/vendors/GoogleGemini/methods/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.d.ts +6 -0
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js +52 -78
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/transport/index.d.ts +9 -0
- package/dist/nodes/vendors/GoogleGemini/transport/index.js +20 -44
- package/dist/nodes/vendors/GoogleGemini/transport/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/Ollama.node.d.ts +9 -0
- package/dist/nodes/vendors/Ollama/Ollama.node.js +15 -38
- package/dist/nodes/vendors/Ollama/Ollama.node.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/actions/descriptions.js +25 -49
- package/dist/nodes/vendors/Ollama/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js +378 -393
- package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/image/index.d.ts +4 -0
- package/dist/nodes/vendors/Ollama/actions/image/index.js +58 -60
- package/dist/nodes/vendors/Ollama/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/node.type.d.ts +7 -0
- package/dist/nodes/vendors/Ollama/actions/node.type.js +1 -15
- package/dist/nodes/vendors/Ollama/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/actions/router.js +72 -72
- package/dist/nodes/vendors/Ollama/actions/router.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/Ollama/actions/text/index.js +58 -60
- package/dist/nodes/vendors/Ollama/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/Ollama/actions/text/message.operation.js +401 -419
- package/dist/nodes/vendors/Ollama/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/actions/versionDescription.js +88 -89
- package/dist/nodes/vendors/Ollama/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/Ollama/helpers/index.d.ts +1 -0
- package/dist/nodes/vendors/Ollama/helpers/index.js +1 -15
- package/dist/nodes/vendors/Ollama/helpers/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/helpers/interfaces.d.ts +50 -0
- package/dist/nodes/vendors/Ollama/helpers/interfaces.js +1 -15
- package/dist/nodes/vendors/Ollama/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/Ollama/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/Ollama/methods/index.js +35 -36
- package/dist/nodes/vendors/Ollama/methods/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/methods/listSearch.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/methods/listSearch.js +11 -35
- package/dist/nodes/vendors/Ollama/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/Ollama/transport/index.d.ts +9 -0
- package/dist/nodes/vendors/Ollama/transport/index.js +28 -52
- package/dist/nodes/vendors/Ollama/transport/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/OpenAi.node.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js +57 -80
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/binary-data.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/helpers/binary-data.js +11 -33
- package/dist/nodes/vendors/OpenAi/helpers/binary-data.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/constants.d.ts +1 -0
- package/dist/nodes/vendors/OpenAi/helpers/constants.js +23 -47
- package/dist/nodes/vendors/OpenAi/helpers/constants.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/description.d.ts +9 -0
- package/dist/nodes/vendors/OpenAi/helpers/description.js +43 -67
- package/dist/nodes/vendors/OpenAi/helpers/description.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.js +32 -52
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.d.ts +93 -0
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.js +1 -15
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.d.ts +1 -0
- package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.js +17 -30
- package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/polling.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/helpers/polling.js +23 -47
- package/dist/nodes/vendors/OpenAi/helpers/polling.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/utils.d.ts +9 -0
- package/dist/nodes/vendors/OpenAi/helpers/utils.js +55 -83
- package/dist/nodes/vendors/OpenAi/helpers/utils.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/index.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/methods/index.js +36 -39
- package/dist/nodes/vendors/OpenAi/methods/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/listSearch.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js +94 -120
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.js +12 -36
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/transport/index.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/transport/index.js +33 -50
- package/dist/nodes/vendors/OpenAi/transport/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.d.ts +11 -0
- package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.js +103 -104
- package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.js +228 -267
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.js +24 -49
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.d.ts +8 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.js +94 -100
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.js +59 -83
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js +236 -261
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.js +171 -216
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.js +157 -186
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.js +88 -92
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.js +75 -111
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.js +65 -101
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.d.ts +3 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.js +50 -75
- package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.js +50 -75
- package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/index.js +76 -80
- package/dist/nodes/vendors/OpenAi/v1/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.js +49 -74
- package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.js +76 -110
- package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js +187 -206
- package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js +277 -305
- package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/image/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/image/index.js +67 -70
- package/dist/nodes/vendors/OpenAi/v1/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/node.type.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/node.type.js +1 -15
- package/dist/nodes/vendors/OpenAi/v1/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/router.js +97 -100
- package/dist/nodes/vendors/OpenAi/v1/actions/router.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.js +70 -93
- package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/text/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/text/index.js +67 -71
- package/dist/nodes/vendors/OpenAi/v1/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js +304 -334
- package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.d.ts +11 -0
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js +109 -110
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.js +157 -186
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.js +88 -92
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.js +75 -111
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.js +65 -101
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js +85 -110
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.js +27 -52
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.d.ts +7 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.js +85 -90
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.js +27 -52
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.js +41 -66
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js +237 -266
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.js +50 -75
- package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/index.js +76 -80
- package/dist/nodes/vendors/OpenAi/v2/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.js +57 -83
- package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.js +84 -118
- package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js +177 -197
- package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.d.ts +29 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js +395 -444
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js +277 -305
- package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/index.js +76 -80
- package/dist/nodes/vendors/OpenAi/v2/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/node.type.d.ts +11 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/node.type.js +1 -15
- package/dist/nodes/vendors/OpenAi/v2/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/router.js +101 -104
- package/dist/nodes/vendors/OpenAi/v2/actions/router.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.js +79 -102
- package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.d.ts +13 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.js +193 -231
- package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/index.js +67 -71
- package/dist/nodes/vendors/OpenAi/v2/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js +628 -667
- package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js +136 -187
- package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/video/index.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/video/index.js +58 -60
- package/dist/nodes/vendors/OpenAi/v2/actions/video/index.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -0
- package/dist/types/nodes.json +21 -21
- package/dist/types/types.d.ts +6 -0
- package/dist/types/types.js +1 -15
- package/dist/types/types.js.map +1 -1
- package/dist/types/zod.types.d.ts +2 -0
- package/dist/types/zod.types.js +1 -15
- package/dist/types/zod.types.js.map +1 -1
- package/dist/utils/N8nBinaryLoader.d.ts +18 -0
- package/dist/utils/N8nBinaryLoader.js +142 -186
- package/dist/utils/N8nBinaryLoader.js.map +1 -1
- package/dist/utils/N8nJsonLoader.d.ts +11 -0
- package/dist/utils/N8nJsonLoader.js +59 -82
- package/dist/utils/N8nJsonLoader.js.map +1 -1
- package/dist/utils/N8nTool.d.ts +11 -0
- package/dist/utils/N8nTool.js +75 -95
- package/dist/utils/N8nTool.js.map +1 -1
- package/dist/utils/agent-execution/buildResponseMetadata.d.ts +3 -0
- package/dist/utils/agent-execution/buildResponseMetadata.js +13 -0
- package/dist/utils/agent-execution/buildResponseMetadata.js.map +1 -0
- package/dist/utils/agent-execution/buildSteps.d.ts +3 -0
- package/dist/utils/agent-execution/buildSteps.js +129 -142
- package/dist/utils/agent-execution/buildSteps.js.map +1 -1
- package/dist/utils/agent-execution/createEngineRequests.d.ts +8 -0
- package/dist/utils/agent-execution/createEngineRequests.js +135 -74
- package/dist/utils/agent-execution/createEngineRequests.js.map +1 -1
- package/dist/utils/agent-execution/index.d.ts +7 -0
- package/dist/utils/agent-execution/index.js +16 -40
- package/dist/utils/agent-execution/index.js.map +1 -1
- package/dist/utils/agent-execution/memoryManagement.d.ts +10 -0
- package/dist/utils/agent-execution/memoryManagement.js +105 -126
- package/dist/utils/agent-execution/memoryManagement.js.map +1 -1
- package/dist/utils/agent-execution/processEventStream.d.ts +5 -0
- package/dist/utils/agent-execution/processEventStream.js +55 -76
- package/dist/utils/agent-execution/processEventStream.js.map +1 -1
- package/dist/utils/agent-execution/processHitlResponses.d.ts +8 -0
- package/dist/utils/agent-execution/processHitlResponses.js +124 -0
- package/dist/utils/agent-execution/processHitlResponses.js.map +1 -0
- package/dist/utils/agent-execution/types.d.ts +82 -0
- package/dist/utils/agent-execution/types.js +22 -33
- package/dist/utils/agent-execution/types.js.map +1 -1
- package/dist/utils/descriptions.d.ts +19 -0
- package/dist/utils/descriptions.js +143 -186
- package/dist/utils/descriptions.js.map +1 -1
- package/dist/utils/embeddings/embeddingInputValidation.d.ts +3 -0
- package/dist/utils/embeddings/embeddingInputValidation.js +22 -49
- package/dist/utils/embeddings/embeddingInputValidation.js.map +1 -1
- package/dist/utils/fromAIToolFactory.d.ts +14 -0
- package/dist/utils/fromAIToolFactory.js +27 -53
- package/dist/utils/fromAIToolFactory.js.map +1 -1
- package/dist/utils/helpers.d.ts +24 -0
- package/dist/utils/helpers.js +235 -226
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/httpProxyAgent.d.ts +10 -0
- package/dist/utils/httpProxyAgent.js +34 -68
- package/dist/utils/httpProxyAgent.js.map +1 -1
- package/dist/utils/logWrapper.d.ts +29 -0
- package/dist/utils/logWrapper.js +320 -365
- package/dist/utils/logWrapper.js.map +1 -1
- package/dist/utils/output_parsers/N8nItemListOutputParser.d.ts +13 -0
- package/dist/utils/output_parsers/N8nItemListOutputParser.js +35 -57
- package/dist/utils/output_parsers/N8nItemListOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nOutputFixingParser.d.ts +18 -0
- package/dist/utils/output_parsers/N8nOutputFixingParser.js +62 -94
- package/dist/utils/output_parsers/N8nOutputFixingParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nOutputParser.d.ts +7 -0
- package/dist/utils/output_parsers/N8nOutputParser.js +15 -44
- package/dist/utils/output_parsers/N8nOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nStructuredOutputParser.d.ts +12 -0
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js +115 -134
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/prompt.d.ts +3 -0
- package/dist/utils/output_parsers/prompt.js +5 -31
- package/dist/utils/output_parsers/prompt.js.map +1 -1
- package/dist/utils/schemaParsing.d.ts +6 -0
- package/dist/utils/schemaParsing.js +34 -63
- package/dist/utils/schemaParsing.js.map +1 -1
- package/dist/utils/sharedFields.d.ts +8 -0
- package/dist/utils/sharedFields.js +130 -157
- package/dist/utils/sharedFields.js.map +1 -1
- package/dist/utils/tokenizer/tiktoken.d.ts +4 -0
- package/dist/utils/tokenizer/tiktoken.js +31 -56
- package/dist/utils/tokenizer/tiktoken.js.map +1 -1
- package/dist/utils/tokenizer/token-estimator.d.ts +4 -0
- package/dist/utils/tokenizer/token-estimator.js +84 -105
- package/dist/utils/tokenizer/token-estimator.js.map +1 -1
- package/dist/utils/tracing.d.ts +7 -0
- package/dist/utils/tracing.js +15 -37
- package/dist/utils/tracing.js.map +1 -1
- package/package.json +14 -15
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildResponseMetadata.js +0 -37
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildResponseMetadata.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../nodes/llms/LMChatOpenAi/LmChatOpenAi.node.ts"],"sourcesContent":["import { ChatOpenAI, type ChatOpenAIFields, type ClientOptions } from '@langchain/openai';\nimport pick from 'lodash/pick';\nimport {\n\tNodeConnectionTypes,\n\ttype INodeProperties,\n\ttype IDataObject,\n\ttype INodeType,\n\ttype INodeTypeDescription,\n\ttype ISupplyDataFunctions,\n\ttype SupplyData,\n} from 'n8n-workflow';\n\nimport { getProxyAgent } from '@utils/httpProxyAgent';\nimport { getConnectionHintNoticeField } from '@utils/sharedFields';\n\nimport { openAiFailedAttemptHandler } from '../../vendors/OpenAi/helpers/error-handling';\nimport { makeN8nLlmFailedAttemptHandler } from '../n8nLlmFailedAttemptHandler';\nimport { N8nLlmTracing } from '../N8nLlmTracing';\nimport { formatBuiltInTools, prepareAdditionalResponsesParams } from './common';\nimport { searchModels } from './methods/loadModels';\nimport type { ModelOptions } from './types';\nimport { Container } from '@n8n/di';\nimport { AiConfig } from '@n8n/config';\n\nconst INCLUDE_JSON_WARNING: INodeProperties = {\n\tdisplayName:\n\t\t'If using JSON response format, you must include word \"json\" in the prompt in your chain or agent. Also, make sure to select latest models released post November 2023.',\n\tname: 'notice',\n\ttype: 'notice',\n\tdefault: '',\n};\n\nconst completionsResponseFormat: INodeProperties = {\n\tdisplayName: 'Response Format',\n\tname: 'responseFormat',\n\tdefault: 'text',\n\ttype: 'options',\n\toptions: [\n\t\t{\n\t\t\tname: 'Text',\n\t\t\tvalue: 'text',\n\t\t\tdescription: 'Regular text response',\n\t\t},\n\t\t{\n\t\t\tname: 'JSON',\n\t\t\tvalue: 'json_object',\n\t\t\tdescription:\n\t\t\t\t'Enables JSON mode, which should guarantee the message the model generates is valid JSON',\n\t\t},\n\t],\n};\n\nconst jsonSchemaExample = `{\n \"type\": \"object\",\n \"properties\": {\n \"message\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false,\n \"required\": [\"message\"]\n}`;\n\nexport class LmChatOpenAi implements INodeType {\n\tmethods = {\n\t\tlistSearch: {\n\t\t\tsearchModels,\n\t\t},\n\t};\n\n\tdescription: INodeTypeDescription = {\n\t\tdisplayName: 'OpenAI Chat Model',\n\n\t\tname: 'lmChatOpenAi',\n\t\ticon: { light: 'file:openAiLight.svg', dark: 'file:openAiLight.dark.svg' },\n\t\tgroup: ['transform'],\n\t\tversion: [1, 1.1, 1.2, 1.3],\n\t\tdescription: 'For advanced usage with an AI chain',\n\t\tdefaults: {\n\t\t\tname: 'OpenAI Chat Model',\n\t\t},\n\t\tcodex: {\n\t\t\tcategories: ['AI'],\n\t\t\tsubcategories: {\n\t\t\t\tAI: ['Language Models', 'Root Nodes'],\n\t\t\t\t'Language Models': ['Chat Models (Recommended)'],\n\t\t\t},\n\t\t\tresources: {\n\t\t\t\tprimaryDocumentation: [\n\t\t\t\t\t{\n\t\t\t\t\t\turl: 'https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\n\t\tinputs: [],\n\n\t\toutputs: [NodeConnectionTypes.AiLanguageModel],\n\t\toutputNames: ['Model'],\n\t\tcredentials: [\n\t\t\t{\n\t\t\t\tname: 'openAiApi',\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t],\n\t\trequestDefaults: {\n\t\t\tignoreHttpStatusErrors: true,\n\t\t\tbaseURL:\n\t\t\t\t'={{ $parameter.options?.baseURL?.split(\"/\").slice(0,-1).join(\"/\") || $credentials?.url?.split(\"/\").slice(0,-1).join(\"/\") || \"https://api.openai.com\" }}',\n\t\t},\n\t\tproperties: [\n\t\t\tgetConnectionHintNoticeField([NodeConnectionTypes.AiChain, NodeConnectionTypes.AiAgent]),\n\t\t\t{\n\t\t\t\t...INCLUDE_JSON_WARNING,\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\t'/options.responseFormat': ['json_object'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\t...INCLUDE_JSON_WARNING,\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\t'/options.textFormat.textOptions.type': ['json_object'],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Model',\n\t\t\t\tname: 'model',\n\t\t\t\ttype: 'options',\n\t\t\t\tdescription:\n\t\t\t\t\t'The model which will generate the completion. <a href=\"https://beta.openai.com/docs/models/overview\">Learn more</a>.',\n\t\t\t\ttypeOptions: {\n\t\t\t\t\tloadOptions: {\n\t\t\t\t\t\trouting: {\n\t\t\t\t\t\t\trequest: {\n\t\t\t\t\t\t\t\tmethod: 'GET',\n\t\t\t\t\t\t\t\turl: '={{ $parameter.options?.baseURL?.split(\"/\").slice(-1).pop() || $credentials?.url?.split(\"/\").slice(-1).pop() || \"v1\" }}/models',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\toutput: {\n\t\t\t\t\t\t\t\tpostReceive: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttype: 'rootProperty',\n\t\t\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\t\t\tproperty: 'data',\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttype: 'filter',\n\t\t\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\t\t\t// If the baseURL is not set or is set to api.openai.com, include only chat models\n\t\t\t\t\t\t\t\t\t\t\tpass: `={{\n\t\t\t\t\t\t\t\t\t\t\t\t($parameter.options?.baseURL && !$parameter.options?.baseURL?.startsWith('https://api.openai.com/')) ||\n\t\t\t\t\t\t\t\t\t\t\t\t($credentials?.url && !$credentials.url.startsWith('https://api.openai.com/')) ||\n\t\t\t\t\t\t\t\t\t\t\t\t$responseItem.id.startsWith('ft:') ||\n\t\t\t\t\t\t\t\t\t\t\t\t$responseItem.id.startsWith('o1') ||\n\t\t\t\t\t\t\t\t\t\t\t\t$responseItem.id.startsWith('o3') ||\n\t\t\t\t\t\t\t\t\t\t\t\t($responseItem.id.startsWith('gpt-') && !$responseItem.id.includes('instruct'))\n\t\t\t\t\t\t\t\t\t\t\t}}`,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttype: 'setKeyValue',\n\t\t\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\t\t\tname: '={{$responseItem.id}}',\n\t\t\t\t\t\t\t\t\t\t\tvalue: '={{$responseItem.id}}',\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttype: 'sort',\n\t\t\t\t\t\t\t\t\t\tproperties: {\n\t\t\t\t\t\t\t\t\t\t\tkey: 'name',\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trouting: {\n\t\t\t\t\tsend: {\n\t\t\t\t\t\ttype: 'body',\n\t\t\t\t\t\tproperty: 'model',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdefault: 'gpt-5-mini',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\thide: {\n\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.2 } }],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Model',\n\t\t\t\tname: 'model',\n\t\t\t\ttype: 'resourceLocator',\n\t\t\t\tdefault: { mode: 'list', value: 'gpt-5-mini' },\n\t\t\t\trequired: true,\n\t\t\t\tmodes: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'From List',\n\t\t\t\t\t\tname: 'list',\n\t\t\t\t\t\ttype: 'list',\n\t\t\t\t\t\tplaceholder: 'Select a model...',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tsearchListMethod: 'searchModels',\n\t\t\t\t\t\t\tsearchable: true,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'ID',\n\t\t\t\t\t\tname: 'id',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tplaceholder: 'gpt-5-mini',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdescription: 'The model. Choose from the list, or specify an ID.',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\thide: {\n\t\t\t\t\t\t'@version': [{ _cnd: { lte: 1.1 } }],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName:\n\t\t\t\t\t'When using non-OpenAI models via \"Base URL\" override, not all models might be chat-compatible or support other features, like tools calling or JSON response format',\n\t\t\t\tname: 'notice',\n\t\t\t\ttype: 'notice',\n\t\t\t\tdefault: '',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\t'/options.baseURL': [{ _cnd: { exists: true } }],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Use Responses API',\n\t\t\t\tname: 'responsesApiEnabled',\n\t\t\t\ttype: 'boolean',\n\t\t\t\tdefault: true,\n\t\t\t\tdescription:\n\t\t\t\t\t'Whether to use the Responses API to generate the response. <a href=\"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/#use-responses-api\">Learn more</a>.',\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Built-in Tools',\n\t\t\t\tname: 'builtInTools',\n\t\t\t\tplaceholder: 'Add Built-in Tool',\n\t\t\t\ttype: 'collection',\n\t\t\t\tdefault: {},\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Web Search',\n\t\t\t\t\t\tname: 'webSearch',\n\t\t\t\t\t\ttype: 'collection',\n\t\t\t\t\t\tdefault: { searchContextSize: 'medium' },\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Search Context Size',\n\t\t\t\t\t\t\t\tname: 'searchContextSize',\n\t\t\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\t\t\tdefault: 'medium',\n\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t'High level guidance for the amount of context window space to use for the search',\n\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t{ name: 'Low', value: 'low' },\n\t\t\t\t\t\t\t\t\t{ name: 'Medium', value: 'medium' },\n\t\t\t\t\t\t\t\t\t{ name: 'High', value: 'high' },\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Web Search Allowed Domains',\n\t\t\t\t\t\t\t\tname: 'allowedDomains',\n\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t'Comma-separated list of domains to search. Only domains in this list will be searched.',\n\t\t\t\t\t\t\t\tplaceholder: 'e.g. google.com, wikipedia.org',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Country',\n\t\t\t\t\t\t\t\tname: 'country',\n\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\tplaceholder: 'e.g. US, GB',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'City',\n\t\t\t\t\t\t\t\tname: 'city',\n\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\tplaceholder: 'e.g. New York, London',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Region',\n\t\t\t\t\t\t\t\tname: 'region',\n\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\tplaceholder: 'e.g. New York, London',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'File Search',\n\t\t\t\t\t\tname: 'fileSearch',\n\t\t\t\t\t\ttype: 'collection',\n\t\t\t\t\t\tdefault: { vectorStoreIds: '[]' },\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Vector Store IDs',\n\t\t\t\t\t\t\t\tname: 'vectorStoreIds',\n\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t'The vector store IDs to use for the file search. Vector stores are managed via OpenAI Dashboard. <a href=\"https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/#built-in-tools\">Learn more</a>.',\n\t\t\t\t\t\t\t\ttype: 'json',\n\t\t\t\t\t\t\t\tdefault: '[]',\n\t\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Filters',\n\t\t\t\t\t\t\t\tname: 'filters',\n\t\t\t\t\t\t\t\ttype: 'json',\n\t\t\t\t\t\t\t\tdefault: '{}',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Max Results',\n\t\t\t\t\t\t\t\tname: 'maxResults',\n\t\t\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t\t\t\tdefault: 1,\n\t\t\t\t\t\t\t\ttypeOptions: { minValue: 1, maxValue: 50 },\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Code Interpreter',\n\t\t\t\t\t\tname: 'codeInterpreter',\n\t\t\t\t\t\ttype: 'boolean',\n\t\t\t\t\t\tdefault: true,\n\t\t\t\t\t\tdescription: 'Whether to allow the model to execute code in a sandboxed environment',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tdisplayOptions: {\n\t\t\t\t\tshow: {\n\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisplayName: 'Options',\n\t\t\t\tname: 'options',\n\t\t\t\tplaceholder: 'Add Option',\n\t\t\t\tdescription: 'Additional options to add',\n\t\t\t\ttype: 'collection',\n\t\t\t\tdefault: {},\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Base URL',\n\t\t\t\t\t\tname: 'baseURL',\n\t\t\t\t\t\tdefault: 'https://api.openai.com/v1',\n\t\t\t\t\t\tdescription: 'Override the default base URL for the API',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\thide: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.1 } }],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Frequency Penalty',\n\t\t\t\t\t\tname: 'frequencyPenalty',\n\t\t\t\t\t\tdefault: 0,\n\t\t\t\t\t\ttypeOptions: { maxValue: 2, minValue: -2, numberPrecision: 1 },\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\"Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim\",\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Maximum Number of Tokens',\n\t\t\t\t\t\tname: 'maxTokens',\n\t\t\t\t\t\tdefault: -1,\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'The maximum number of tokens to generate in the completion. Most models have a context length of 2048 tokens (except for the newest models, which support 32,768).',\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tmaxValue: 32768,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t...completionsResponseFormat,\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { lt: 1.3 } }],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t...completionsResponseFormat,\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [false],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Response Format',\n\t\t\t\t\t\tname: 'textFormat',\n\t\t\t\t\t\ttype: 'fixedCollection',\n\t\t\t\t\t\tdefault: { textOptions: [{ type: 'text' }] },\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Text',\n\t\t\t\t\t\t\t\tname: 'textOptions',\n\t\t\t\t\t\t\t\tvalues: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Type',\n\t\t\t\t\t\t\t\t\t\tname: 'type',\n\t\t\t\t\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{ name: 'Text', value: 'text' },\n\t\t\t\t\t\t\t\t\t\t\t// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased\n\t\t\t\t\t\t\t\t\t\t\t{ name: 'JSON Schema (recommended)', value: 'json_schema' },\n\t\t\t\t\t\t\t\t\t\t\t{ name: 'JSON Object', value: 'json_object' },\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Verbosity',\n\t\t\t\t\t\t\t\t\t\tname: 'verbosity',\n\t\t\t\t\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\t\t\t\t\tdefault: 'medium',\n\t\t\t\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t\t\t\t{ name: 'Low', value: 'low' },\n\t\t\t\t\t\t\t\t\t\t\t{ name: 'Medium', value: 'medium' },\n\t\t\t\t\t\t\t\t\t\t\t{ name: 'High', value: 'high' },\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Name',\n\t\t\t\t\t\t\t\t\t\tname: 'name',\n\t\t\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\t\t\tdefault: 'my_schema',\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t'The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.',\n\t\t\t\t\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t\t\t\t\ttype: ['json_schema'],\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName:\n\t\t\t\t\t\t\t\t\t\t\t'All properties in the schema must be set to \"required\", when using \"strict\" mode.',\n\t\t\t\t\t\t\t\t\t\tname: 'requiredNotice',\n\t\t\t\t\t\t\t\t\t\ttype: 'notice',\n\t\t\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t\t\t\t\tstrict: [true],\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Schema',\n\t\t\t\t\t\t\t\t\t\tname: 'schema',\n\t\t\t\t\t\t\t\t\t\ttype: 'json',\n\t\t\t\t\t\t\t\t\t\tdefault: jsonSchemaExample,\n\t\t\t\t\t\t\t\t\t\tdescription: 'The schema of the response format',\n\t\t\t\t\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t\t\t\t\ttype: ['json_schema'],\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Description',\n\t\t\t\t\t\t\t\t\t\tname: 'description',\n\t\t\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\t\t\tdescription: 'The description of the response format',\n\t\t\t\t\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t\t\t\t\ttype: ['json_schema'],\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Strict',\n\t\t\t\t\t\t\t\t\t\tname: 'strict',\n\t\t\t\t\t\t\t\t\t\ttype: 'boolean',\n\t\t\t\t\t\t\t\t\t\tdefault: false,\n\t\t\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t\t\t'Whether to require that the AI will always generate responses that match the provided JSON Schema',\n\t\t\t\t\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t\t\t\t\ttype: ['json_schema'],\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Presence Penalty',\n\t\t\t\t\t\tname: 'presencePenalty',\n\t\t\t\t\t\tdefault: 0,\n\t\t\t\t\t\ttypeOptions: { maxValue: 2, minValue: -2, numberPrecision: 1 },\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\"Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics\",\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Sampling Temperature',\n\t\t\t\t\t\tname: 'temperature',\n\t\t\t\t\t\tdefault: 0.7,\n\t\t\t\t\t\ttypeOptions: { maxValue: 2, minValue: 0, numberPrecision: 1 },\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.',\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Reasoning Effort',\n\t\t\t\t\t\tname: 'reasoningEffort',\n\t\t\t\t\t\tdefault: 'medium',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Controls the amount of reasoning tokens to use. A value of \"low\" will favor speed and economical token usage, \"high\" will favor more complete reasoning at the cost of more tokens generated and slower responses.',\n\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Low',\n\t\t\t\t\t\t\t\tvalue: 'low',\n\t\t\t\t\t\t\t\tdescription: 'Favors speed and economical token usage',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'Medium',\n\t\t\t\t\t\t\t\tvalue: 'medium',\n\t\t\t\t\t\t\t\tdescription: 'Balance between speed and reasoning accuracy',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tname: 'High',\n\t\t\t\t\t\t\t\tvalue: 'high',\n\t\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\t'Favors more complete reasoning at the cost of more tokens generated and slower responses',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t// reasoning_effort is only available on o1, o1-versioned, or on o3-mini and beyond, and gpt-5 models. Not on o1-mini or other GPT-models.\n\t\t\t\t\t\t\t\t'/model': [{ _cnd: { regex: '(^o1([-\\\\d]+)?$)|(^o[3-9].*)|(^gpt-5.*)' } }],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Timeout',\n\t\t\t\t\t\tname: 'timeout',\n\t\t\t\t\t\tdefault: 60000,\n\t\t\t\t\t\tdescription: 'Maximum amount of time a request is allowed to take in milliseconds',\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Max Retries',\n\t\t\t\t\t\tname: 'maxRetries',\n\t\t\t\t\t\tdefault: 2,\n\t\t\t\t\t\tdescription: 'Maximum number of retries to attempt',\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Top P',\n\t\t\t\t\t\tname: 'topP',\n\t\t\t\t\t\tdefault: 1,\n\t\t\t\t\t\ttypeOptions: { maxValue: 1, minValue: 0, numberPrecision: 1 },\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Controls diversity via nucleus sampling: 0.5 means half of all likelihood-weighted options are considered. We generally recommend altering this or temperature but not both.',\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Conversation ID',\n\t\t\t\t\t\tname: 'conversationId',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'The conversation that this response belongs to. Input items and output items from this response are automatically added to this conversation after this response completes.',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Prompt Cache Key',\n\t\t\t\t\t\tname: 'promptCacheKey',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Used by OpenAI to cache responses for similar requests to optimize your cache hit rates',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Safety Identifier',\n\t\t\t\t\t\tname: 'safetyIdentifier',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\"A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user.\",\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Service Tier',\n\t\t\t\t\t\tname: 'serviceTier',\n\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\tdefault: 'auto',\n\t\t\t\t\t\tdescription: 'The service tier to use for the request',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{ name: 'Auto', value: 'auto' },\n\t\t\t\t\t\t\t{ name: 'Flex', value: 'flex' },\n\t\t\t\t\t\t\t{ name: 'Default', value: 'default' },\n\t\t\t\t\t\t\t{ name: 'Priority', value: 'priority' },\n\t\t\t\t\t\t],\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Metadata',\n\t\t\t\t\t\tname: 'metadata',\n\t\t\t\t\t\ttype: 'json',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.',\n\t\t\t\t\t\tdefault: '{}',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Top Logprobs',\n\t\t\t\t\t\tname: 'topLogprobs',\n\t\t\t\t\t\ttype: 'number',\n\t\t\t\t\t\tdefault: 0,\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tminValue: 0,\n\t\t\t\t\t\t\tmaxValue: 20,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Prompt',\n\t\t\t\t\t\tname: 'promptConfig',\n\t\t\t\t\t\ttype: 'fixedCollection',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Configure the reusable prompt template configured via OpenAI Dashboard. <a href=\"https://platform.openai.com/docs/guides/prompt-engineering#reusable-prompts\">Learn more</a>.',\n\t\t\t\t\t\tdefault: { promptOptions: [{ promptId: '' }] },\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName: 'Prompt',\n\t\t\t\t\t\t\t\tname: 'promptOptions',\n\t\t\t\t\t\t\t\tvalues: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Prompt ID',\n\t\t\t\t\t\t\t\t\t\tname: 'promptId',\n\t\t\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\t\t\tdescription: 'The unique identifier of the prompt template to use',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Version',\n\t\t\t\t\t\t\t\t\t\tname: 'version',\n\t\t\t\t\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\t\t\t\t\tdescription: 'Optional version of the prompt template',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdisplayName: 'Variables',\n\t\t\t\t\t\t\t\t\t\tname: 'variables',\n\t\t\t\t\t\t\t\t\t\ttype: 'json',\n\t\t\t\t\t\t\t\t\t\tdefault: '{}',\n\t\t\t\t\t\t\t\t\t\tdescription: 'Variables to be substituted into the prompt template',\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.3 } }],\n\t\t\t\t\t\t\t\t'/responsesApiEnabled': [true],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t};\n\n\tasync supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData> {\n\t\tconst credentials = await this.getCredentials('openAiApi');\n\n\t\tconst version = this.getNode().typeVersion;\n\t\tconst modelName =\n\t\t\tversion >= 1.2\n\t\t\t\t? (this.getNodeParameter('model.value', itemIndex) as string)\n\t\t\t\t: (this.getNodeParameter('model', itemIndex) as string);\n\n\t\tconst responsesApiEnabled = this.getNodeParameter('responsesApiEnabled', itemIndex, false);\n\n\t\tconst options = this.getNodeParameter('options', itemIndex, {}) as ModelOptions;\n\n\t\tconst { openAiDefaultHeaders: defaultHeaders } = Container.get(AiConfig);\n\n\t\tconst configuration: ClientOptions = {\n\t\t\tdefaultHeaders,\n\t\t};\n\n\t\tif (options.baseURL) {\n\t\t\tconfiguration.baseURL = options.baseURL;\n\t\t} else if (credentials.url) {\n\t\t\tconfiguration.baseURL = credentials.url as string;\n\t\t}\n\n\t\tconst timeout = options.timeout;\n\t\tconfiguration.fetchOptions = {\n\t\t\tdispatcher: getProxyAgent(configuration.baseURL ?? 'https://api.openai.com/v1', {\n\t\t\t\theadersTimeout: timeout,\n\t\t\t\tbodyTimeout: timeout,\n\t\t\t}),\n\t\t};\n\t\tif (\n\t\t\tcredentials.header &&\n\t\t\ttypeof credentials.headerName === 'string' &&\n\t\t\tcredentials.headerName &&\n\t\t\ttypeof credentials.headerValue === 'string'\n\t\t) {\n\t\t\tconfiguration.defaultHeaders = {\n\t\t\t\t...configuration.defaultHeaders,\n\t\t\t\t[credentials.headerName]: credentials.headerValue,\n\t\t\t};\n\t\t}\n\n\t\t// Extra options to send to OpenAI, that are not directly supported by LangChain\n\t\tconst modelKwargs: Record<string, unknown> = {};\n\t\tif (responsesApiEnabled) {\n\t\t\tconst kwargs = prepareAdditionalResponsesParams(options);\n\t\t\tObject.assign(modelKwargs, kwargs);\n\t\t} else {\n\t\t\tif (options.responseFormat) modelKwargs.response_format = { type: options.responseFormat };\n\t\t\tif (options.reasoningEffort && ['low', 'medium', 'high'].includes(options.reasoningEffort)) {\n\t\t\t\tmodelKwargs.reasoning_effort = options.reasoningEffort;\n\t\t\t}\n\t\t}\n\n\t\tconst includedOptions = pick(options, [\n\t\t\t'frequencyPenalty',\n\t\t\t'maxTokens',\n\t\t\t'presencePenalty',\n\t\t\t'temperature',\n\t\t\t'topP',\n\t\t\t'baseURL',\n\t\t]);\n\n\t\tconst fields: ChatOpenAIFields = {\n\t\t\tapiKey: credentials.apiKey as string,\n\t\t\tmodel: modelName,\n\t\t\t...includedOptions,\n\t\t\ttimeout,\n\t\t\tmaxRetries: options.maxRetries ?? 2,\n\t\t\tconfiguration,\n\t\t\tcallbacks: [new N8nLlmTracing(this)],\n\t\t\tmodelKwargs,\n\t\t\tonFailedAttempt: makeN8nLlmFailedAttemptHandler(this, openAiFailedAttemptHandler),\n\t\t\t// Set to false to ensure compatibility with OpenAI-compatible backends (LM Studio, vLLM, etc.)\n\t\t\t// that reject strict: null in tool definitions\n\t\t\tsupportsStrictToolCalling: false,\n\t\t};\n\n\t\t// by default ChatOpenAI can switch to responses API automatically, so force it only on 1.3 and above to keep backwards compatibility\n\t\tif (responsesApiEnabled) {\n\t\t\tfields.useResponsesApi = true;\n\t\t}\n\n\t\tconst model = new ChatOpenAI(fields);\n\n\t\tif (responsesApiEnabled) {\n\t\t\tconst tools = formatBuiltInTools(\n\t\t\t\tthis.getNodeParameter('builtInTools', itemIndex, {}) as IDataObject,\n\t\t\t);\n\t\t\t// pass tools to the model metadata, ToolAgent will use it to create agent configuration\n\t\t\tif (tools.length) {\n\t\t\t\tmodel.metadata = {\n\t\t\t\t\t...model.metadata,\n\t\t\t\t\ttools,\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tresponse: model,\n\t\t};\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAsE;AACtE,kBAAiB;AACjB,0BAQO;AAEP,4BAA8B;AAC9B,0BAA6C;AAE7C,4BAA2C;AAC3C,wCAA+C;AAC/C,2BAA8B;AAC9B,oBAAqE;AACrE,wBAA6B;AAE7B,gBAA0B;AAC1B,oBAAyB;AAEzB,MAAM,uBAAwC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B,YAAAA,SAAK,SAAS;AAAA,MACrC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD,CAAC;AAED,UAAM,SAA2B;AAAA,MAChC,QAAQ,YAAY;AAAA,MACpB,OAAO;AAAA,MACP,GAAG;AAAA,MACH;AAAA,MACA,YAAY,QAAQ,cAAc;AAAA,MAClC;AAAA,MACA,WAAW,CAAC,IAAI,mCAAc,IAAI,CAAC;AAAA,MACnC;AAAA,MACA,qBAAiB,kEAA+B,MAAM,gDAA0B;AAAA;AAAA;AAAA,MAGhF,2BAA2B;AAAA,IAC5B;AAGA,QAAI,qBAAqB;AACxB,aAAO,kBAAkB;AAAA,IAC1B;AAEA,UAAM,QAAQ,IAAI,yBAAW,MAAM;AAEnC,QAAI,qBAAqB;AACxB,YAAM,YAAQ;AAAA,QACb,KAAK,iBAAiB,gBAAgB,WAAW,CAAC,CAAC;AAAA,MACpD;AAEA,UAAI,MAAM,QAAQ;AACjB,cAAM,WAAW;AAAA,UAChB,GAAG,MAAM;AAAA,UACT;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAEA,WAAO;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACD;AACD;","names":["pick"]}
|
|
1
|
+
{"version":3,"file":"LmChatOpenAi.node.js","sourceRoot":"","sources":["../../../../nodes/llms/LMChatOpenAi/LmChatOpenAi.node.ts"],"names":[],"mappings":";;;;;;AAAA,8CAA0F;AAC1F,uDAA+B;AAC/B,+CAQsB;AAEtB,0DAAsD;AACtD,sDAAmE;AAEnE,gFAAyF;AACzF,8EAA+E;AAC/E,oDAAiD;AACjD,qCAAgF;AAChF,qDAAoD;AAEpD,gCAAoC;AACpC,wCAAuC;AAEvC,MAAM,oBAAoB,GAAoB;IAC7C,WAAW,EACV,wKAAwK;IACzK,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,yBAAyB,GAAoB;IAClD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,GAAG,KAAK,CAAC,QAAQ;oBACjB,KAAK;iBACL,CAAC;YACH,CAAC;QACF,CAAC;QAED,OAAO;YACN,QAAQ,EAAE,KAAK;SACf,CAAC;IACH,CAAC;CACD;AAnwBD,oCAmwBC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatOpenAIToolType } from '@langchain/openai/dist/utils/tools';
|
|
2
|
+
import type { BuiltInTools, ChatResponseRequest, ModelOptions } from './types';
|
|
3
|
+
export declare const formatBuiltInTools: (builtInTools: BuiltInTools) => ChatOpenAIToolType[];
|
|
4
|
+
export declare const prepareAdditionalResponsesParams: (options: ModelOptions) => Partial<ChatResponseRequest>;
|
|
@@ -1,155 +1,130 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
4
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var common_exports = {};
|
|
30
|
-
__export(common_exports, {
|
|
31
|
-
formatBuiltInTools: () => formatBuiltInTools,
|
|
32
|
-
prepareAdditionalResponsesParams: () => prepareAdditionalResponsesParams
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(common_exports);
|
|
35
|
-
var import_get = __toESM(require("lodash/get"));
|
|
36
|
-
var import_isObject = __toESM(require("lodash/isObject"));
|
|
37
|
-
var import_n8n_workflow = require("n8n-workflow");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.prepareAdditionalResponsesParams = exports.formatBuiltInTools = void 0;
|
|
7
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
+
const isObject_1 = __importDefault(require("lodash/isObject"));
|
|
9
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
38
10
|
const removeEmptyProperties = (rest) => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
11
|
+
return Object.keys(rest)
|
|
12
|
+
.filter((k) => rest[k] !== '' && rest[k] !== undefined && !((0, isObject_1.default)(rest[k]) && (0, n8n_workflow_1.isObjectEmpty)(rest[k])))
|
|
13
|
+
.reduce((a, k) => ({ ...a, [k]: rest[k] }), {});
|
|
42
14
|
};
|
|
43
|
-
const toArray = (str) => str
|
|
15
|
+
const toArray = (str) => str
|
|
16
|
+
.split(',')
|
|
17
|
+
.map((e) => e.trim())
|
|
18
|
+
.filter(Boolean);
|
|
44
19
|
const formatBuiltInTools = (builtInTools) => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
20
|
+
const tools = [];
|
|
21
|
+
if (builtInTools) {
|
|
22
|
+
const webSearchOptions = (0, get_1.default)(builtInTools, 'webSearch');
|
|
23
|
+
if (webSearchOptions) {
|
|
24
|
+
let allowedDomains;
|
|
25
|
+
const allowedDomainsRaw = (0, get_1.default)(webSearchOptions, 'allowedDomains', '');
|
|
26
|
+
if (allowedDomainsRaw) {
|
|
27
|
+
allowedDomains = toArray(allowedDomainsRaw);
|
|
28
|
+
}
|
|
29
|
+
let userLocation;
|
|
30
|
+
if (webSearchOptions.country || webSearchOptions.city || webSearchOptions.region) {
|
|
31
|
+
userLocation = {
|
|
32
|
+
type: 'approximate',
|
|
33
|
+
country: webSearchOptions.country,
|
|
34
|
+
city: webSearchOptions.city,
|
|
35
|
+
region: webSearchOptions.region,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
tools.push({
|
|
39
|
+
type: 'web_search',
|
|
40
|
+
search_context_size: (0, get_1.default)(webSearchOptions, 'searchContextSize', 'medium'),
|
|
41
|
+
user_location: userLocation,
|
|
42
|
+
...(allowedDomains && { filters: { allowed_domains: allowedDomains } }),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
if (builtInTools.codeInterpreter) {
|
|
46
|
+
tools.push({
|
|
47
|
+
type: 'code_interpreter',
|
|
48
|
+
container: {
|
|
49
|
+
type: 'auto',
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (builtInTools.fileSearch) {
|
|
54
|
+
const vectorStoreIds = (0, get_1.default)(builtInTools.fileSearch, 'vectorStoreIds', '[]');
|
|
55
|
+
const filters = (0, get_1.default)(builtInTools.fileSearch, 'filters', '{}');
|
|
56
|
+
tools.push({
|
|
57
|
+
type: 'file_search',
|
|
58
|
+
vector_store_ids: (0, n8n_workflow_1.jsonParse)(vectorStoreIds, {
|
|
59
|
+
errorMessage: 'Failed to parse vector store IDs',
|
|
60
|
+
}),
|
|
61
|
+
filters: filters
|
|
62
|
+
? (0, n8n_workflow_1.jsonParse)(filters, { errorMessage: 'Failed to parse filters' })
|
|
63
|
+
: undefined,
|
|
64
|
+
max_num_results: (0, get_1.default)(builtInTools.fileSearch, 'maxResults'),
|
|
65
|
+
});
|
|
75
66
|
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
if (builtInTools.fileSearch) {
|
|
79
|
-
const vectorStoreIds = (0, import_get.default)(builtInTools.fileSearch, "vectorStoreIds", "[]");
|
|
80
|
-
const filters = (0, import_get.default)(builtInTools.fileSearch, "filters", "{}");
|
|
81
|
-
tools.push({
|
|
82
|
-
type: "file_search",
|
|
83
|
-
vector_store_ids: (0, import_n8n_workflow.jsonParse)(vectorStoreIds, {
|
|
84
|
-
errorMessage: "Failed to parse vector store IDs"
|
|
85
|
-
}),
|
|
86
|
-
filters: filters ? (0, import_n8n_workflow.jsonParse)(filters, { errorMessage: "Failed to parse filters" }) : void 0,
|
|
87
|
-
max_num_results: (0, import_get.default)(builtInTools.fileSearch, "maxResults")
|
|
88
|
-
});
|
|
89
67
|
}
|
|
90
|
-
|
|
91
|
-
return tools;
|
|
68
|
+
return tools;
|
|
92
69
|
};
|
|
70
|
+
exports.formatBuiltInTools = formatBuiltInTools;
|
|
93
71
|
const prepareAdditionalResponsesParams = (options) => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
};
|
|
100
|
-
if (options.conversationId) {
|
|
101
|
-
body.conversation = options.conversationId;
|
|
102
|
-
}
|
|
103
|
-
if (options.metadata) {
|
|
104
|
-
body.metadata = (0, import_n8n_workflow.jsonParse)(options.metadata, {
|
|
105
|
-
errorMessage: "Failed to parse metadata"
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
if (options.promptConfig) {
|
|
109
|
-
const prompt = (0, import_get.default)(options, "promptConfig.promptOptions", {});
|
|
110
|
-
body.prompt = removeEmptyProperties({
|
|
111
|
-
id: prompt.promptId,
|
|
112
|
-
version: prompt.version,
|
|
113
|
-
...prompt.variables && {
|
|
114
|
-
variables: (0, import_n8n_workflow.jsonParse)(prompt.variables, {
|
|
115
|
-
errorMessage: "Failed to parse prompt variables"
|
|
116
|
-
})
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
if (options.textFormat) {
|
|
121
|
-
const textOptions = (0, import_get.default)(options, "textFormat.textOptions", {});
|
|
122
|
-
const textConfig = {
|
|
123
|
-
verbosity: textOptions.verbosity
|
|
72
|
+
const body = {
|
|
73
|
+
prompt_cache_key: options.promptCacheKey,
|
|
74
|
+
safety_identifier: options.safetyIdentifier,
|
|
75
|
+
service_tier: options.serviceTier,
|
|
76
|
+
top_logprobs: options.topLogprobs,
|
|
124
77
|
};
|
|
125
|
-
if (
|
|
126
|
-
|
|
127
|
-
type: textOptions.type,
|
|
128
|
-
name: textOptions.name,
|
|
129
|
-
schema: (0, import_n8n_workflow.jsonParse)(textOptions.schema, {
|
|
130
|
-
errorMessage: "Failed to parse schema"
|
|
131
|
-
})
|
|
132
|
-
};
|
|
133
|
-
} else {
|
|
134
|
-
textConfig.format = {
|
|
135
|
-
type: textOptions.type
|
|
136
|
-
};
|
|
78
|
+
if (options.conversationId) {
|
|
79
|
+
body.conversation = options.conversationId;
|
|
137
80
|
}
|
|
138
|
-
if (
|
|
139
|
-
|
|
81
|
+
if (options.metadata) {
|
|
82
|
+
body.metadata = (0, n8n_workflow_1.jsonParse)(options.metadata, {
|
|
83
|
+
errorMessage: 'Failed to parse metadata',
|
|
84
|
+
});
|
|
140
85
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
86
|
+
if (options.promptConfig) {
|
|
87
|
+
const prompt = (0, get_1.default)(options, 'promptConfig.promptOptions', {});
|
|
88
|
+
body.prompt = removeEmptyProperties({
|
|
89
|
+
id: prompt.promptId,
|
|
90
|
+
version: prompt.version,
|
|
91
|
+
...(prompt.variables && {
|
|
92
|
+
variables: (0, n8n_workflow_1.jsonParse)(prompt.variables, {
|
|
93
|
+
errorMessage: 'Failed to parse prompt variables',
|
|
94
|
+
}),
|
|
95
|
+
}),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (options.textFormat) {
|
|
99
|
+
const textOptions = (0, get_1.default)(options, 'textFormat.textOptions', {});
|
|
100
|
+
const textConfig = {
|
|
101
|
+
verbosity: textOptions.verbosity,
|
|
102
|
+
};
|
|
103
|
+
if (textOptions.type === 'json_schema') {
|
|
104
|
+
textConfig.format = {
|
|
105
|
+
type: textOptions.type,
|
|
106
|
+
name: textOptions.name,
|
|
107
|
+
schema: (0, n8n_workflow_1.jsonParse)(textOptions.schema, {
|
|
108
|
+
errorMessage: 'Failed to parse schema',
|
|
109
|
+
}),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
textConfig.format = {
|
|
114
|
+
type: textOptions.type,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
if (textConfig.format) {
|
|
118
|
+
textConfig.format = removeEmptyProperties(textConfig.format);
|
|
119
|
+
}
|
|
120
|
+
body.text = textConfig;
|
|
121
|
+
}
|
|
122
|
+
if (options.reasoningEffort) {
|
|
123
|
+
body.reasoning = {
|
|
124
|
+
effort: options.reasoningEffort,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
return body;
|
|
149
128
|
};
|
|
150
|
-
|
|
151
|
-
0 && (module.exports = {
|
|
152
|
-
formatBuiltInTools,
|
|
153
|
-
prepareAdditionalResponsesParams
|
|
154
|
-
});
|
|
129
|
+
exports.prepareAdditionalResponsesParams = prepareAdditionalResponsesParams;
|
|
155
130
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../nodes/llms/LMChatOpenAi/common.ts"],"
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../nodes/llms/LMChatOpenAi/common.ts"],"names":[],"mappings":";;;;;;AAEA,qDAA6B;AAC7B,+DAAuC;AACvC,+CAAwD;AAUxD,MAAM,qBAAqB,GAAG,CAAI,IAA4B,EAAK,EAAE;IACpE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;SACtB,MAAM,CACN,CAAC,CAAC,EAAE,EAAE,CACL,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,IAAA,kBAAQ,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAAA,4BAAa,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAC1F;SACA,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAiB,CAAC;AAClE,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE,CAC/B,GAAG;KACD,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACpB,MAAM,CAAC,OAAO,CAAC,CAAC;AAEZ,MAAM,kBAAkB,GAAG,CAAC,YAA0B,EAAE,EAAE;IAChE,MAAM,KAAK,GAAyB,EAAE,CAAC;IACvC,IAAI,YAAY,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,aAAG,EAAC,YAAY,EAAE,WAAW,CAAC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+1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
4
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var loadModels_exports = {};
|
|
30
|
-
__export(loadModels_exports, {
|
|
31
|
-
searchModels: () => searchModels
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(loadModels_exports);
|
|
34
|
-
var import_openai = __toESM(require("openai"));
|
|
35
|
-
var import_modelFiltering = require("../../../vendors/OpenAi/helpers/modelFiltering");
|
|
36
|
-
var import_httpProxyAgent = require("../../../../utils/httpProxyAgent");
|
|
37
|
-
var import_di = require("@n8n/di");
|
|
38
|
-
var import_config = require("@n8n/config");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.searchModels = searchModels;
|
|
7
|
+
const openai_1 = __importDefault(require("openai"));
|
|
8
|
+
const modelFiltering_1 = require("../../../vendors/OpenAi/helpers/modelFiltering");
|
|
9
|
+
const httpProxyAgent_1 = require("../../../../utils/httpProxyAgent");
|
|
10
|
+
const di_1 = require("@n8n/di");
|
|
11
|
+
const config_1 = require("@n8n/config");
|
|
39
12
|
async function searchModels(filter) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
13
|
+
const credentials = await this.getCredentials('openAiApi');
|
|
14
|
+
const baseURL = this.getNodeParameter('options.baseURL', '') ||
|
|
15
|
+
credentials.url ||
|
|
16
|
+
'https://api.openai.com/v1';
|
|
17
|
+
const { openAiDefaultHeaders: defaultHeaders } = di_1.Container.get(config_1.AiConfig);
|
|
18
|
+
const openai = new openai_1.default({
|
|
19
|
+
baseURL,
|
|
20
|
+
apiKey: credentials.apiKey,
|
|
21
|
+
fetchOptions: {
|
|
22
|
+
dispatcher: (0, httpProxyAgent_1.getProxyAgent)(baseURL),
|
|
23
|
+
},
|
|
24
|
+
defaultHeaders,
|
|
25
|
+
});
|
|
26
|
+
const { data: models = [] } = await openai.models.list();
|
|
27
|
+
const url = baseURL && new URL(baseURL);
|
|
28
|
+
const isCustomAPI = !!(url && !['api.openai.com', 'ai-assistant.n8n.io'].includes(url.hostname));
|
|
29
|
+
const filteredModels = models.filter((model) => {
|
|
30
|
+
const includeModel = (0, modelFiltering_1.shouldIncludeModel)(model.id, isCustomAPI);
|
|
31
|
+
if (!filter)
|
|
32
|
+
return includeModel;
|
|
33
|
+
return includeModel && model.id.toLowerCase().includes(filter.toLowerCase());
|
|
34
|
+
});
|
|
35
|
+
filteredModels.sort((a, b) => a.id.localeCompare(b.id));
|
|
36
|
+
return {
|
|
37
|
+
results: filteredModels.map((model) => ({
|
|
38
|
+
name: model.id,
|
|
39
|
+
value: model.id,
|
|
40
|
+
})),
|
|
41
|
+
};
|
|
66
42
|
}
|
|
67
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
-
0 && (module.exports = {
|
|
69
|
-
searchModels
|
|
70
|
-
});
|
|
71
43
|
//# sourceMappingURL=loadModels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../nodes/llms/LMChatOpenAi/methods/loadModels.ts"],"
|
|
1
|
+
{"version":3,"file":"loadModels.js","sourceRoot":"","sources":["../../../../../nodes/llms/LMChatOpenAi/methods/loadModels.ts"],"names":[],"mappings":";;;;;AAQA,oCAwCC;AA/CD,oDAA4B;AAE5B,mFAAoF;AACpF,0DAAsD;AACtD,gCAAoC;AACpC,wCAAuC;AAEhC,KAAK,UAAU,YAAY,CAEjC,MAAe;IAEf,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3D,MAAM,OAAO,GACX,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,EAAE,CAAY;QACvD,WAAW,CAAC,GAAc;QAC3B,2BAA2B,CAAC;IAC7B,MAAM,EAAE,oBAAoB,EAAE,cAAc,EAAE,GAAG,cAAS,CAAC,GAAG,CAAC,iBAAQ,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,IAAI,gBAAM,CAAC;QACzB,OAAO;QACP,MAAM,EAAE,WAAW,CAAC,MAAgB;QACpC,YAAY,EAAE;YACb,UAAU,EAAE,IAAA,8BAAa,EAAC,O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