lint fixes
This commit is contained in:
parent
338082f0aa
commit
888fa356b9
|
|
@ -102,7 +102,7 @@ class Playwright_DocumentLoaders implements INode {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
description: 'CSS selectors like .div or #div',
|
description: 'CSS selectors like .div or #div'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Metadata',
|
label: 'Metadata',
|
||||||
|
|
@ -119,7 +119,7 @@ class Playwright_DocumentLoaders implements INode {
|
||||||
const metadata = nodeData.inputs?.metadata
|
const metadata = nodeData.inputs?.metadata
|
||||||
const relativeLinksMethod = nodeData.inputs?.relativeLinksMethod as string
|
const relativeLinksMethod = nodeData.inputs?.relativeLinksMethod as string
|
||||||
let limit = nodeData.inputs?.limit as string
|
let limit = nodeData.inputs?.limit as string
|
||||||
let waitUntilGoToOption = nodeData.inputs?.waitUntilGoToOption as "load" | "domcontentloaded" | "networkidle" | "commit" | undefined
|
let waitUntilGoToOption = nodeData.inputs?.waitUntilGoToOption as 'load' | 'domcontentloaded' | 'networkidle' | 'commit' | undefined
|
||||||
let waitForSelector = nodeData.inputs?.waitForSelector as string
|
let waitForSelector = nodeData.inputs?.waitForSelector as string
|
||||||
|
|
||||||
let url = nodeData.inputs?.url as string
|
let url = nodeData.inputs?.url as string
|
||||||
|
|
@ -136,14 +136,14 @@ class Playwright_DocumentLoaders implements INode {
|
||||||
args: ['--no-sandbox'],
|
args: ['--no-sandbox'],
|
||||||
headless: true
|
headless: true
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
if (waitUntilGoToOption) {
|
if (waitUntilGoToOption) {
|
||||||
config['gotoOptions'] = {
|
config['gotoOptions'] = {
|
||||||
waitUntil: waitUntilGoToOption
|
waitUntil: waitUntilGoToOption
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (waitForSelector) {
|
if (waitForSelector) {
|
||||||
config['evaluate'] = async (page: Page, browser: Browser): Promise<string> => {
|
config['evaluate'] = async (page: Page, _: Browser): Promise<string> => {
|
||||||
await page.waitForSelector(waitForSelector)
|
await page.waitForSelector(waitForSelector)
|
||||||
|
|
||||||
const result = await page.evaluate(() => document.body.innerHTML)
|
const result = await page.evaluate(() => document.body.innerHTML)
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,8 @@ class Puppeteer_DocumentLoaders implements INode {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
description: 'Only used when "Get Relative Links Method" is selected. Set 0 to retrieve all relative links, default limit is 10.',
|
description:
|
||||||
|
'Only used when "Get Relative Links Method" is selected. Set 0 to retrieve all relative links, default limit is 10.',
|
||||||
warning: `Retrieving all links might take long time, and all links will be upserted again if the flow's state changed (eg: different URL, chunk size, etc)`
|
warning: `Retrieving all links might take long time, and all links will be upserted again if the flow's state changed (eg: different URL, chunk size, etc)`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -75,12 +76,12 @@ class Puppeteer_DocumentLoaders implements INode {
|
||||||
{
|
{
|
||||||
label: 'Load',
|
label: 'Load',
|
||||||
name: 'load',
|
name: 'load',
|
||||||
description: `When the initial HTML document\'s DOM has been loaded and parsed`
|
description: `When the initial HTML document's DOM has been loaded and parsed`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'DOM Content Loaded',
|
label: 'DOM Content Loaded',
|
||||||
name: 'domcontentloaded',
|
name: 'domcontentloaded',
|
||||||
description: `When the complete HTML document\'s DOM has been loaded and parsed`
|
description: `When the complete HTML document's DOM has been loaded and parsed`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Network Idle 0',
|
label: 'Network Idle 0',
|
||||||
|
|
@ -102,7 +103,7 @@ class Puppeteer_DocumentLoaders implements INode {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
optional: true,
|
optional: true,
|
||||||
additionalParams: true,
|
additionalParams: true,
|
||||||
description: 'CSS selectors like .div or #div',
|
description: 'CSS selectors like .div or #div'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Metadata',
|
label: 'Metadata',
|
||||||
|
|
@ -136,14 +137,14 @@ class Puppeteer_DocumentLoaders implements INode {
|
||||||
args: ['--no-sandbox'],
|
args: ['--no-sandbox'],
|
||||||
headless: 'new'
|
headless: 'new'
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
if (waitUntilGoToOption) {
|
if (waitUntilGoToOption) {
|
||||||
config['gotoOptions'] = {
|
config['gotoOptions'] = {
|
||||||
waitUntil: waitUntilGoToOption
|
waitUntil: waitUntilGoToOption
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (waitForSelector) {
|
if (waitForSelector) {
|
||||||
config['evaluate'] = async (page: Page, browser: Browser): Promise<string> => {
|
config['evaluate'] = async (page: Page, _: Browser): Promise<string> => {
|
||||||
await page.waitForSelector(waitForSelector)
|
await page.waitForSelector(waitForSelector)
|
||||||
|
|
||||||
const result = await page.evaluate(() => document.body.innerHTML)
|
const result = await page.evaluate(() => document.body.innerHTML)
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,7 @@
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"name": "chatOpenAI",
|
"name": "chatOpenAI",
|
||||||
"type": "ChatOpenAI",
|
"type": "ChatOpenAI",
|
||||||
"baseClasses": [
|
"baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel"],
|
||||||
"ChatOpenAI",
|
|
||||||
"BaseChatModel",
|
|
||||||
"BaseLanguageModel"
|
|
||||||
],
|
|
||||||
"category": "Chat Models",
|
"category": "Chat Models",
|
||||||
"description": "Wrapper around OpenAI large language models that use the Chat endpoint",
|
"description": "Wrapper around OpenAI large language models that use the Chat endpoint",
|
||||||
"inputParams": [
|
"inputParams": [
|
||||||
|
|
@ -28,9 +24,7 @@
|
||||||
"label": "Connect Credential",
|
"label": "Connect Credential",
|
||||||
"name": "credential",
|
"name": "credential",
|
||||||
"type": "credential",
|
"type": "credential",
|
||||||
"credentialNames": [
|
"credentialNames": ["openAIApi"],
|
||||||
"openAIApi"
|
|
||||||
],
|
|
||||||
"id": "chatOpenAI_0-input-credential-credential"
|
"id": "chatOpenAI_0-input-credential-credential"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -176,10 +170,7 @@
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"name": "openAIEmbeddings",
|
"name": "openAIEmbeddings",
|
||||||
"type": "OpenAIEmbeddings",
|
"type": "OpenAIEmbeddings",
|
||||||
"baseClasses": [
|
"baseClasses": ["OpenAIEmbeddings", "Embeddings"],
|
||||||
"OpenAIEmbeddings",
|
|
||||||
"Embeddings"
|
|
||||||
],
|
|
||||||
"category": "Embeddings",
|
"category": "Embeddings",
|
||||||
"description": "OpenAI API to generate embeddings for a given text",
|
"description": "OpenAI API to generate embeddings for a given text",
|
||||||
"inputParams": [
|
"inputParams": [
|
||||||
|
|
@ -187,9 +178,7 @@
|
||||||
"label": "Connect Credential",
|
"label": "Connect Credential",
|
||||||
"name": "credential",
|
"name": "credential",
|
||||||
"type": "credential",
|
"type": "credential",
|
||||||
"credentialNames": [
|
"credentialNames": ["openAIApi"],
|
||||||
"openAIApi"
|
|
||||||
],
|
|
||||||
"id": "openAIEmbeddings_0-input-credential-credential"
|
"id": "openAIEmbeddings_0-input-credential-credential"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -329,10 +318,7 @@
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"name": "conversationalRetrievalQAChain",
|
"name": "conversationalRetrievalQAChain",
|
||||||
"type": "ConversationalRetrievalQAChain",
|
"type": "ConversationalRetrievalQAChain",
|
||||||
"baseClasses": [
|
"baseClasses": ["ConversationalRetrievalQAChain", "BaseChain"],
|
||||||
"ConversationalRetrievalQAChain",
|
|
||||||
"BaseChain"
|
|
||||||
],
|
|
||||||
"category": "Chains",
|
"category": "Chains",
|
||||||
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
|
"description": "Document QA - built on RetrievalQAChain to provide a chat history component",
|
||||||
"inputParams": [
|
"inputParams": [
|
||||||
|
|
@ -442,9 +428,7 @@
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"name": "cheerioWebScraper",
|
"name": "cheerioWebScraper",
|
||||||
"type": "Document",
|
"type": "Document",
|
||||||
"baseClasses": [
|
"baseClasses": ["Document"],
|
||||||
"Document"
|
|
||||||
],
|
|
||||||
"category": "Document Loaders",
|
"category": "Document Loaders",
|
||||||
"description": "Load data from webpages",
|
"description": "Load data from webpages",
|
||||||
"inputParams": [
|
"inputParams": [
|
||||||
|
|
@ -543,11 +527,7 @@
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"name": "pineconeUpsert",
|
"name": "pineconeUpsert",
|
||||||
"type": "Pinecone",
|
"type": "Pinecone",
|
||||||
"baseClasses": [
|
"baseClasses": ["Pinecone", "VectorStoreRetriever", "BaseRetriever"],
|
||||||
"Pinecone",
|
|
||||||
"VectorStoreRetriever",
|
|
||||||
"BaseRetriever"
|
|
||||||
],
|
|
||||||
"category": "Vector Stores",
|
"category": "Vector Stores",
|
||||||
"description": "Upsert documents to Pinecone",
|
"description": "Upsert documents to Pinecone",
|
||||||
"inputParams": [
|
"inputParams": [
|
||||||
|
|
@ -555,9 +535,7 @@
|
||||||
"label": "Connect Credential",
|
"label": "Connect Credential",
|
||||||
"name": "credential",
|
"name": "credential",
|
||||||
"type": "credential",
|
"type": "credential",
|
||||||
"credentialNames": [
|
"credentialNames": ["pineconeApi"],
|
||||||
"pineconeApi"
|
|
||||||
],
|
|
||||||
"id": "pineconeUpsert_0-input-credential-credential"
|
"id": "pineconeUpsert_0-input-credential-credential"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -602,9 +580,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"document": [
|
"document": ["{{cheerioWebScraper_0.data.instance}}"],
|
||||||
"{{cheerioWebScraper_0.data.instance}}"
|
|
||||||
],
|
|
||||||
"embeddings": "{{openAIEmbeddings_0.data.instance}}",
|
"embeddings": "{{openAIEmbeddings_0.data.instance}}",
|
||||||
"pineconeIndex": "",
|
"pineconeIndex": "",
|
||||||
"pineconeNamespace": "",
|
"pineconeNamespace": "",
|
||||||
|
|
@ -659,11 +635,7 @@
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"name": "motorheadMemory",
|
"name": "motorheadMemory",
|
||||||
"type": "MotorheadMemory",
|
"type": "MotorheadMemory",
|
||||||
"baseClasses": [
|
"baseClasses": ["MotorheadMemory", "BaseChatMemory", "BaseMemory"],
|
||||||
"MotorheadMemory",
|
|
||||||
"BaseChatMemory",
|
|
||||||
"BaseMemory"
|
|
||||||
],
|
|
||||||
"category": "Memory",
|
"category": "Memory",
|
||||||
"description": "Use Motorhead Memory to store chat conversations",
|
"description": "Use Motorhead Memory to store chat conversations",
|
||||||
"inputParams": [
|
"inputParams": [
|
||||||
|
|
@ -673,9 +645,7 @@
|
||||||
"type": "credential",
|
"type": "credential",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"description": "Only needed when using hosted solution - https://getmetal.io",
|
"description": "Only needed when using hosted solution - https://getmetal.io",
|
||||||
"credentialNames": [
|
"credentialNames": ["motorheadMemoryApi"],
|
||||||
"motorheadMemoryApi"
|
|
||||||
],
|
|
||||||
"id": "motorheadMemory_0-input-credential-credential"
|
"id": "motorheadMemory_0-input-credential-credential"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -798,4 +768,4 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue